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
196ffdf6
Commit
196ffdf6
authored
Jan 24, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmc: Add support for generating a po template file.
parent
45dc5bf6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
8 deletions
+15
-8
Makefile.in
tools/wmc/Makefile.in
+5
-4
po.c
tools/wmc/po.c
+0
-0
wmc.c
tools/wmc/wmc.c
+7
-2
wmc.man.in
tools/wmc/wmc.man.in
+2
-2
write.h
tools/wmc/write.h
+1
-0
No files found.
tools/wmc/Makefile.in
View file @
196ffdf6
DEFS
=
-D__WINESRC__
$(EXTRADEFS)
DEFS
=
-D__WINESRC__
$(EXTRADEFS)
PROGRAMS
=
wmc
$(EXEEXT)
wmc-installed
MANPAGE
=
wmc.man
ALL_LIBS
=
@LIBGETTEXTPO@
$(LIBWINE)
$(LIBPORT)
C_SRCS
=
\
lang.c
\
mcl.c
\
po.c
\
utils.c
\
wmc.c
\
write.c
...
...
@@ -19,10 +20,10 @@ all: $(PROGRAMS)
@MAKE_RULES@
wmc$(EXEEXT)
:
$(OBJS)
$(CC)
$(CFLAGS)
-o
$@
$(OBJS)
$(
LIBWINE)
$(LIBPORT
)
$(LDFLAGS)
$(LDRPATH_LOCAL)
$(CC)
$(CFLAGS)
-o
$@
$(OBJS)
$(
ALL_LIBS
)
$(LDFLAGS)
$(LDRPATH_LOCAL)
wmc-installed
:
$(OBJS)
$(CC)
$(CFLAGS)
-o
$@
$(OBJS)
$(
LIBWINE)
$(LIBPORT
)
$(LDFLAGS)
$(LDRPATH_INSTALL)
$(CC)
$(CFLAGS)
-o
$@
$(OBJS)
$(
ALL_LIBS
)
$(LDFLAGS)
$(LDRPATH_INSTALL)
install
::
wmc-installed $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM)
wmc-installed
$(DESTDIR)$(bindir)
/wmc
$(EXEEXT)
...
...
tools/wmc/po.c
0 → 100644
View file @
196ffdf6
This diff is collapsed.
Click to expand it.
tools/wmc/wmc.c
View file @
196ffdf6
...
...
@@ -48,7 +48,7 @@ static const char usage[] =
" -H file Write headerfile to file (default is inputfile.h)
\n
"
" -i Inline messagetable(s)
\n
"
" -o file Output to file (default is inputfile.rc)
\n
"
" -O fmt Set output format (rc, res)
\n
"
" -O fmt Set output format (rc, res
, pot
)
\n
"
" -u Inputfile is in unicode
\n
"
" -U Output unicode messagetable(s)
\n
"
" -v Show supported codepages and languages
\n
"
...
...
@@ -121,7 +121,8 @@ FILE *yyin;
static
enum
{
FORMAT_RC
,
FORMAT_RES
FORMAT_RES
,
FORMAT_POT
}
output_format
;
int
getopt
(
int
argc
,
char
*
const
*
argv
,
const
char
*
optstring
);
...
...
@@ -221,6 +222,7 @@ int main(int argc,char *argv[])
case
'O'
:
if
(
!
strcmp
(
optarg
,
"rc"
))
output_format
=
FORMAT_RC
;
else
if
(
!
strcmp
(
optarg
,
"res"
))
output_format
=
FORMAT_RES
;
else
if
(
!
strcmp
(
optarg
,
"pot"
))
output_format
=
FORMAT_POT
;
else
{
fprintf
(
stderr
,
"Output format must be rc or res
\n
"
);
...
...
@@ -319,6 +321,9 @@ int main(int argc,char *argv[])
case
FORMAT_RES
:
write_res_file
(
output_name
);
break
;
case
FORMAT_POT
:
write_pot_file
(
output_name
);
break
;
}
output_name
=
NULL
;
header_name
=
NULL
;
...
...
tools/wmc/wmc.man.in
View file @
196ffdf6
...
...
@@ -49,8 +49,8 @@ wrc(1).
Output to \fIfile\fR. Default is \fIinputfile.rc\fR.
.TP
.BI \-O\ format
Set the output format. Supported formats are \fBrc\fR (the default)
and \fBres
\fR.
Set the output format. Supported formats are \fBrc\fR (the default)
,
\fBres\fR, and \fBpot
\fR.
.TP
.B \-u
Assume that the inputfile is in unicode.
...
...
tools/wmc/write.h
View file @
196ffdf6
...
...
@@ -24,5 +24,6 @@ void write_h_file(const char *fname);
void
write_rc_file
(
const
char
*
fname
);
void
write_bin_files
(
void
);
void
write_res_file
(
const
char
*
name
);
void
write_pot_file
(
const
char
*
outname
);
#endif
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