Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c63d9803
Commit
c63d9803
authored
Aug 17, 2002
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include protection for <unistd.h>, <sys/types.h> and <sys/stat.h>.
parent
e75542ae
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
76 additions
and
23 deletions
+76
-23
fnt2bdf.c
tools/fnt2bdf.c
+20
-4
makedep.c
tools/makedep.c
+3
-1
header.c
tools/widl/header.c
+3
-1
parser.l
tools/widl/parser.l
+5
-1
proxy.c
tools/widl/proxy.c
+3
-1
widl.c
tools/widl/widl.c
+3
-1
import.c
tools/winebuild/import.c
+3
-1
res16.c
tools/winebuild/res16.c
+6
-2
res32.c
tools/winebuild/res32.c
+6
-2
debug.c
tools/winedump/debug.c
+9
-4
pe.c
tools/winedump/pe.c
+9
-3
preproc.c
tools/wpp/preproc.c
+3
-1
wrc.c
tools/wrc/wrc.c
+3
-1
No files found.
tools/fnt2bdf.c
View file @
c63d9803
...
...
@@ -30,8 +30,17 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <fcntl.h>
#ifdef HAVE_IO_H
# include <io.h>
#endif
#ifndef O_BINARY
# define O_BINARY 0
#endif
#include "fnt2bdf.h"
#include "module.h"
...
...
@@ -146,6 +155,13 @@ int parse_fnt_data(unsigned char* file_buffer, int length)
t
=
return_data_value
(
dfShort
,
&
cpe_font_struct
.
hdr
.
dfVersion
);
if
(
t
!=
0x300
&&
t
!=
0x200
)
return
ERROR_VERSION
;
t
=
return_data_value
(
dfShort
,
&
cpe_font_struct
.
hdr
.
fi
.
dfType
);
if
(
t
&
1
)
{
fprintf
(
stderr
,
"Vector fonts not supported
\n
"
);
return
ERROR_DATA
;
}
t
=
return_data_value
(
dfLong
,
&
cpe_font_struct
.
hdr
.
dfSize
);
if
(
t
>
length
)
return
ERROR_SIZE
;
else
...
...
@@ -176,7 +192,7 @@ int parse_fnt_data(unsigned char* file_buffer, int length)
if
(
return_data_value
(
dfShort
,
&
cpe_font_struct
.
hdr
.
dfVersion
)
==
0x200
)
{
cpe_font_struct
.
dfCharTable
[
ic
].
charOffset
=
return_data_value
(
dfShort
,
&
file_buffer
[
l_ptr
]);
l_ptr
+=
2
;
/* bump by sizeof(
long
) */
l_ptr
+=
2
;
/* bump by sizeof(
short
) */
}
else
{
/* Windows Version 3.0 type font */
cpe_font_struct
.
dfCharTable
[
ic
].
charOffset
=
...
...
@@ -540,7 +556,7 @@ int main(int argc, char **argv)
parse_options
(
argc
,
argv
);
if
(
(
fd
=
open
(
g_lpstrInputFile
,
O_RDONLY
))
)
if
(
(
fd
=
open
(
g_lpstrInputFile
,
O_RDONLY
|
O_BINARY
))
)
{
int
i
;
struct
stat
file_stat
;
...
...
@@ -574,7 +590,7 @@ int main(int argc, char **argv)
unsigned
short
size_shift
=
return_data_value
(
dfShort
,
lpdata
);
unsigned
char
*
lpfont
=
NULL
;
unsigned
offset
;
unsigned
length
;
int
length
;
for
(
j
=
0
;
j
<
count
;
j
++
,
pFontStorage
++
)
{
...
...
tools/makedep.c
View file @
c63d9803
...
...
@@ -25,7 +25,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
/* Max first-level includes per file */
#define MAX_INCLUDES 200
...
...
tools/widl/header.c
View file @
c63d9803
...
...
@@ -22,7 +22,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <string.h>
#include <assert.h>
#include <ctype.h>
...
...
tools/widl/parser.l
View file @
c63d9803
...
...
@@ -33,12 +33,16 @@ uuid {hexd}{8}-{hexd}{4}-{hexd}{4}-{hexd}{4}-{hexd}{12}
%{
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include "widl.h"
#include "utils.h"
...
...
tools/widl/proxy.c
View file @
c63d9803
...
...
@@ -22,7 +22,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <string.h>
#include <assert.h>
#include <ctype.h>
...
...
tools/widl/widl.c
View file @
c63d9803
...
...
@@ -23,7 +23,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <string.h>
#include <assert.h>
#include <ctype.h>
...
...
tools/winebuild/import.c
View file @
c63d9803
...
...
@@ -26,7 +26,9 @@
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include "build.h"
...
...
tools/winebuild/res16.c
View file @
c63d9803
...
...
@@ -25,9 +25,13 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include <fcntl.h>
#include <sys/stat.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
...
...
tools/winebuild/res32.c
View file @
c63d9803
...
...
@@ -25,9 +25,13 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include <fcntl.h>
#include <sys/stat.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
...
...
tools/winedump/debug.c
View file @
c63d9803
...
...
@@ -25,10 +25,16 @@
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
...
...
@@ -480,4 +486,3 @@ void dump_codeview(unsigned long base, unsigned long len)
{
dump_codeview_headers
(
base
,
len
);
}
tools/winedump/pe.c
View file @
c63d9803
...
...
@@ -23,10 +23,16 @@
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
...
...
tools/wpp/preproc.c
View file @
c63d9803
...
...
@@ -24,7 +24,9 @@
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include "wpp_private.h"
...
...
tools/wrc/wrc.c
View file @
c63d9803
...
...
@@ -52,7 +52,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <string.h>
#include <assert.h>
#include <ctype.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