Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cb613f51
Commit
cb613f51
authored
Feb 22, 2005
by
Jon Griffiths
Committed by
Alexandre Julliard
Feb 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use config.h & HAVE_ where needed, -W fixes.
parent
69e7d31c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
13 deletions
+27
-13
dbg.y
programs/winedbg/dbg.y
+3
-1
emf.c
tools/winedump/emf.c
+15
-9
lnk.c
tools/winedump/lnk.c
+9
-3
No files found.
programs/winedbg/dbg.y
View file @
cb613f51
...
...
@@ -26,7 +26,9 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include "wine/exception.h"
#include "debugger.h"
...
...
tools/winedump/emf.c
View file @
cb613f51
...
...
@@ -18,10 +18,16 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include <fcntl.h>
#include <stdarg.h>
...
...
@@ -31,7 +37,7 @@
static
unsigned
int
read_int
(
unsigned
char
*
buffer
)
{
return
buffer
[
0
]
return
buffer
[
0
]
+
(
buffer
[
1
]
<<
8
)
+
(
buffer
[
2
]
<<
16
)
+
(
buffer
[
3
]
<<
24
);
...
...
@@ -42,15 +48,15 @@ static unsigned int read_int(unsigned char *buffer)
static
int
dump_emfrecord
(
int
fd
)
{
unsigned
char
buffer
[
8
];
int
r
,
i
;
unsigned
int
type
,
length
;
int
r
;
unsigned
int
type
,
length
,
i
;
r
=
read
(
fd
,
buffer
,
8
);
if
(
r
!=
8
)
return
-
1
;
type
=
read_int
(
buffer
);
length
=
read_int
(
buffer
+
4
);
type
=
read_int
(
buffer
);
length
=
read_int
(
buffer
+
4
);
switch
(
type
)
{
...
...
@@ -97,7 +103,7 @@ static int dump_emfrecord(int fd)
r
=
read
(
fd
,
buffer
,
4
);
if
(
r
!=
4
)
return
-
1
;
printf
(
"%08x "
,
read_int
(
buffer
));
printf
(
"%08x "
,
read_int
(
buffer
));
if
(
(
i
%
16
==
12
)
||
((
i
+
4
)
==
length
)
)
printf
(
"
\n
"
);
}
...
...
tools/winedump/lnk.c
View file @
cb613f51
...
...
@@ -18,11 +18,17 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include <fcntl.h>
#include <stdarg.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment