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
903f6868
Commit
903f6868
authored
Jan 21, 2010
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Fix symbol was not declared and using plain integer as NULL pointer sparse warnings.
parent
39b3a57b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
26 deletions
+26
-26
translation.c
tools/wrc/translation.c
+1
-1
utils.c
tools/wrc/utils.c
+1
-1
wrc.c
tools/wrc/wrc.c
+24
-24
No files found.
tools/wrc/translation.c
View file @
903f6868
...
...
@@ -887,7 +887,7 @@ typedef struct resource_id_node
struct
resource_id_node
*
next
;
}
resource_id_node_t
;
struct
st
atic
st
ruct
{
int
enabled
;
struct
resource_id_node
*
ids
;
...
...
tools/wrc/utils.c
View file @
903f6868
...
...
@@ -367,7 +367,7 @@ struct lang2cp
unsigned
short
lang
;
unsigned
short
sublang
;
unsigned
int
cp
;
}
lang2cp_t
;
};
/* language to codepage conversion table */
/* specific sublanguages need only be specified if their codepage */
...
...
tools/wrc/wrc.c
View file @
903f6868
...
...
@@ -161,7 +161,7 @@ static int verify_translations_mode;
char
*
output_name
=
NULL
;
/* The name given by the -o option */
char
*
input_name
=
NULL
;
/* The name given on the command-line */
char
*
temp_name
=
NULL
;
/* Temporary file for preprocess pipe */
static
char
*
temp_name
=
NULL
;
/* Temporary file for preprocess pipe */
int
line_number
=
1
;
/* The current line */
int
char_number
=
1
;
/* The current char pos within the line */
...
...
@@ -193,27 +193,27 @@ enum long_options_values
static
const
char
short_options
[]
=
"D:Ef:F:hi:I:J:l:o:O:rU:v"
;
static
const
struct
option
long_options
[]
=
{
{
"debug"
,
1
,
0
,
LONG_OPT_DEBUG
},
{
"define"
,
1
,
0
,
'D'
},
{
"endianess"
,
1
,
0
,
LONG_OPT_ENDIANESS
},
{
"help"
,
0
,
0
,
'h'
},
{
"include-dir"
,
1
,
0
,
'I'
},
{
"input"
,
1
,
0
,
'i'
},
{
"input-format"
,
1
,
0
,
'J'
},
{
"language"
,
1
,
0
,
'l'
},
{
"no-use-temp-file"
,
0
,
0
,
LONG_OPT_NOTMPFILE
},
{
"nostdinc"
,
0
,
0
,
LONG_OPT_NOSTDINC
},
{
"output"
,
1
,
0
,
'o'
},
{
"output-format"
,
1
,
0
,
'O'
},
{
"pedantic"
,
0
,
0
,
LONG_OPT_PEDANTIC
},
{
"preprocessor"
,
1
,
0
,
LONG_OPT_PREPROCESSOR
},
{
"target"
,
1
,
0
,
'F'
},
{
"undefine"
,
1
,
0
,
'U'
},
{
"use-temp-file"
,
0
,
0
,
LONG_OPT_TMPFILE
},
{
"verbose"
,
0
,
0
,
'v'
},
{
"verify-translations"
,
0
,
0
,
LONG_OPT_VERIFY_TRANSL
},
{
"version"
,
0
,
0
,
LONG_OPT_VERSION
},
{
0
,
0
,
0
,
0
}
{
"debug"
,
1
,
NULL
,
LONG_OPT_DEBUG
},
{
"define"
,
1
,
NULL
,
'D'
},
{
"endianess"
,
1
,
NULL
,
LONG_OPT_ENDIANESS
},
{
"help"
,
0
,
NULL
,
'h'
},
{
"include-dir"
,
1
,
NULL
,
'I'
},
{
"input"
,
1
,
NULL
,
'i'
},
{
"input-format"
,
1
,
NULL
,
'J'
},
{
"language"
,
1
,
NULL
,
'l'
},
{
"no-use-temp-file"
,
0
,
NULL
,
LONG_OPT_NOTMPFILE
},
{
"nostdinc"
,
0
,
NULL
,
LONG_OPT_NOSTDINC
},
{
"output"
,
1
,
NULL
,
'o'
},
{
"output-format"
,
1
,
NULL
,
'O'
},
{
"pedantic"
,
0
,
NULL
,
LONG_OPT_PEDANTIC
},
{
"preprocessor"
,
1
,
NULL
,
LONG_OPT_PREPROCESSOR
},
{
"target"
,
1
,
NULL
,
'F'
},
{
"undefine"
,
1
,
NULL
,
'U'
},
{
"use-temp-file"
,
0
,
NULL
,
LONG_OPT_TMPFILE
},
{
"verbose"
,
0
,
NULL
,
'v'
},
{
"verify-translations"
,
0
,
NULL
,
LONG_OPT_VERIFY_TRANSL
},
{
"version"
,
0
,
NULL
,
LONG_OPT_VERSION
},
{
NULL
,
0
,
NULL
,
0
}
};
static
void
set_version_defines
(
void
)
...
...
@@ -489,8 +489,8 @@ int main(int argc,char *argv[])
/* Kill io buffering when some kind of debuglevel is enabled */
if
(
debuglevel
)
{
setbuf
(
stdout
,
0
);
setbuf
(
stderr
,
0
);
setbuf
(
stdout
,
NULL
);
setbuf
(
stderr
,
NULL
);
}
parser_debug
=
debuglevel
&
DEBUGLEVEL_TRACE
?
1
:
0
;
...
...
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