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
84512405
Commit
84512405
authored
Jan 18, 2004
by
Vincent Béron
Committed by
Alexandre Julliard
Jan 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a new flag to wrc, to be used to assess translations
advancement.
parent
ab14f1a5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
19 deletions
+34
-19
Makefile.in
tools/wrc/Makefile.in
+1
-0
translation.c
tools/wrc/translation.c
+0
-0
wrc.c
tools/wrc/wrc.c
+33
-19
No files found.
tools/wrc/Makefile.in
View file @
84512405
...
...
@@ -15,6 +15,7 @@ C_SRCS = \
genres.c
\
newstruc.c
\
readres.c
\
translation.c
\
utils.c
\
wrc.c
\
writeres.c
...
...
tools/wrc/translation.c
0 → 100644
View file @
84512405
This diff is collapsed.
Click to expand it.
tools/wrc/wrc.c
View file @
84512405
...
...
@@ -70,25 +70,26 @@ static char usage[] =
" -U id Undefine preprocessor identifier id
\n
"
" -v Enable verbose mode
\n
"
"The following long options are supported:
\n
"
" --debug=nn Set debug level to 'nn'
\n
"
" --define Synonym for -D
\n
"
" --endianess=e Set output byte-order e={n[ative], l[ittle], b[ig]}
\n
"
" (win32 only; default is "
ENDIAN
"-endian)
\n
"
" --help Synonym for -h
\n
"
" --include-dir Synonym for -I
\n
"
" --input Synonym for -i
\n
"
" --input-format Synonym for -J
\n
"
" --language Synonym for -l
\n
"
" --no-use-temp-file Ignored for compatibility with windres
\n
"
" --nostdinc Disables searching the standard include path
\n
"
" --output -fo Synonym for -o
\n
"
" --output-format Synonym for -O
\n
"
" --pedantic Enable pedantic warnings
\n
"
" --preprocessor Specifies the preprocessor to use, including arguments
\n
"
" --target Synonym for -F
\n
"
" --undefine Synonym for -U
\n
"
" --use-temp-file Ignored for compatibility with windres
\n
"
" --version Print version and exit
\n
"
" --debug=nn Set debug level to 'nn'
\n
"
" --define Synonym for -D
\n
"
" --endianess=e Set output byte-order e={n[ative], l[ittle], b[ig]}
\n
"
" (win32 only; default is "
ENDIAN
"-endian)
\n
"
" --help Synonym for -h
\n
"
" --include-dir Synonym for -I
\n
"
" --input Synonym for -i
\n
"
" --input-format Synonym for -J
\n
"
" --language Synonym for -l
\n
"
" --no-use-temp-file Ignored for compatibility with windres
\n
"
" --nostdinc Disables searching the standard include path
\n
"
" --output -fo Synonym for -o
\n
"
" --output-format Synonym for -O
\n
"
" --pedantic Enable pedantic warnings
\n
"
" --preprocessor Specifies the preprocessor to use, including arguments
\n
"
" --target Synonym for -F
\n
"
" --undefine Synonym for -U
\n
"
" --use-temp-file Ignored for compatibility with windres
\n
"
" --verify-translations Check the status of the various translations
\n
"
" --version Print version and exit
\n
"
"Input is taken from stdin if no sourcefile specified.
\n
"
"Debug level 'n' is a bitmask with following meaning:
\n
"
" * 0x01 Tell which resource is parsed (verbose mode)
\n
"
...
...
@@ -109,6 +110,7 @@ char version_string[] = "Wine Resource Compiler Version " WRC_FULLVERSION "\n"
* External functions
*/
void
write_resfile
(
char
*
outname
,
resource_t
*
top
);
void
verify_translations
(
resource_t
*
top
);
/*
* Set if compiling in 32bit mode (default).
...
...
@@ -157,6 +159,8 @@ int preprocess_only = 0;
*/
int
no_preprocess
=
0
;
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 */
...
...
@@ -193,6 +197,7 @@ static struct option long_options[] = {
{
"target"
,
1
,
0
,
'F'
},
{
"undefine"
,
1
,
0
,
'U'
},
{
"use-temp-file"
,
0
,
0
,
2
},
{
"verify-translations"
,
0
,
0
,
9
},
{
"version"
,
0
,
0
,
5
},
{
0
,
0
,
0
,
0
}
};
...
...
@@ -285,6 +290,9 @@ int main(int argc,char *argv[])
pedantic
=
1
;
wpp_set_pedantic
(
1
);
break
;
case
9
:
verify_translations_mode
=
1
;
break
;
case
'D'
:
wpp_add_cmdline_define
(
optarg
);
break
;
...
...
@@ -454,6 +462,12 @@ int main(int argc,char *argv[])
if
(
debuglevel
&
DEBUGLEVEL_DUMP
)
dump_resources
(
resource_top
);
if
(
verify_translations_mode
)
{
verify_translations
(
resource_top
);
exit
(
0
);
}
/* Convert the internal lists to binary data */
resources2res
(
resource_top
);
...
...
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