Change oldnames option from '-o' to '--oldnames'.

svn path=/trunk/; revision=19921
This commit is contained in:
Eric Kohl 2005-12-05 22:12:42 +00:00
parent 01b9db35b7
commit 8d47c7feb7
4 changed files with 35 additions and 13 deletions

View file

@ -15,24 +15,24 @@
<include base="ReactOS">.</include> <include base="ReactOS">.</include>
<include base="ReactOS">w32api/include</include> <include base="ReactOS">w32api/include</include>
<define name="_X86_" /> <define name="_X86_" />
<file switches="-o">svcctl.idl</file> <file switches="--oldnames">svcctl.idl</file>
</module> </module>
<module name="scm_client" type="rpcclient"> <module name="scm_client" type="rpcclient">
<include base="ReactOS">.</include> <include base="ReactOS">.</include>
<include base="ReactOS">w32api/include</include> <include base="ReactOS">w32api/include</include>
<define name="_X86_" /> <define name="_X86_" />
<file switches="-o">svcctl.idl</file> <file switches="--oldnames">svcctl.idl</file>
</module> </module>
<module name="eventlog_server" type="rpcserver"> <module name="eventlog_server" type="rpcserver">
<include base="ReactOS">.</include> <include base="ReactOS">.</include>
<include base="ReactOS">w32api/include</include> <include base="ReactOS">w32api/include</include>
<define name="_X86_" /> <define name="_X86_" />
<file switches="-o">eventlogrpc.idl</file> <file switches="--oldnames">eventlogrpc.idl</file>
</module> </module>
<module name="eventlog_client" type="rpcclient"> <module name="eventlog_client" type="rpcclient">
<include base="ReactOS">.</include> <include base="ReactOS">.</include>
<include base="ReactOS">w32api/include</include> <include base="ReactOS">w32api/include</include>
<define name="_X86_" /> <define name="_X86_" />
<file switches="-o">eventlogrpc.idl</file> <file switches="--oldnames">eventlogrpc.idl</file>
</module> </module>
</group> </group>

View file

@ -1,5 +1,12 @@
ChangeLog ChangeLog
2005-12-05 ekohl
tools/widl/widl.c
tools/widl/widl.man
- Change oldnames option from '-o' to '--oldnames'.
2005-11-26 ekohl 2005-11-26 ekohl
tools/widl/client.c tools/widl/client.c

View file

@ -30,6 +30,9 @@
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>
#include <signal.h> #include <signal.h>
#ifdef HAVE_GETOPT_H
# include <getopt.h>
#endif
#define WIDL_FULLVERSION "0.1" #define WIDL_FULLVERSION "0.1"
@ -58,7 +61,7 @@ static char usage[] =
" -H file Name of header file (default is infile.h)\n" " -H file Name of header file (default is infile.h)\n"
" -I path Set include search dir to path (multiple -I allowed)\n" " -I path Set include search dir to path (multiple -I allowed)\n"
" -N Do not preprocess input\n" " -N Do not preprocess input\n"
" -o Use old naming conventions\n" " --oldnames Use old naming conventions\n"
" -p Generate proxy\n" " -p Generate proxy\n"
" -P file Name of proxy file (default is infile_p.c)\n" " -P file Name of proxy file (default is infile_p.c)\n"
" -s Generate server stub\n" " -s Generate server stub\n"
@ -116,6 +119,15 @@ int getopt (int argc, char *const *argv, const char *optstring);
static void rm_tempfile(void); static void rm_tempfile(void);
static void segvhandler(int sig); static void segvhandler(int sig);
static const char* short_options =
"cC:d:D:EhH:I:NpP:sS:tT:VW";
static struct option long_options[] = {
{"oldnames", 0, 0, 1},
{ 0, 0, 0, 0 }
};
static char *make_token(const char *name) static char *make_token(const char *name)
{ {
char *token; char *token;
@ -139,13 +151,17 @@ int main(int argc,char *argv[])
extern int optind; extern int optind;
int optc; int optc;
int ret = 0; int ret = 0;
int opti = 0;
signal(SIGSEGV, segvhandler); signal(SIGSEGV, segvhandler);
now = time(NULL); now = time(NULL);
while((optc = getopt(argc, argv, "cC:d:D:EhH:I:NopP:sS:tT:VW")) != EOF) { while((optc = getopt_long(argc, argv, short_options, long_options, &opti)) != EOF) {
switch (optc) { switch (optc) {
case 1:
old_names = 1;
break;
case 'c': case 'c':
do_everything = 0; do_everything = 0;
do_client = 1; do_client = 1;
@ -176,9 +192,6 @@ int main(int argc,char *argv[])
case 'N': case 'N':
no_preprocess = 1; no_preprocess = 1;
break; break;
case 'o':
old_names = 1;
break;
case 'p': case 'p':
do_everything = 0; do_everything = 0;
do_proxies = 1; do_proxies = 1;

View file

@ -4,7 +4,7 @@ widl \- Wine Interface Definition Language Compiler
.SH SYNOPSIS .SH SYNOPSIS
.BR "widl "\fI[options]\fR " \fIinfile.idl\fR" .BR "widl "\fI[options]\fR " \fIinfile.idl\fR"
.SH DESCRIPTION .SH DESCRIPTION
.B widl .B widl
is a Wine tool which purpose is to compile Interface Definition Language (IDL) files. is a Wine tool which purpose is to compile Interface Definition Language (IDL) files.
.PP .PP
.SH OPTIONS .SH OPTIONS
@ -14,6 +14,8 @@ No options are used.
The program prints the help info and then exits. The program prints the help info and then exits.
.PP .PP
.B General options: .B General options:
.IP \fB--oldnames\fR
Use old naming conventions.
.IP \fB-V\fR .IP \fB-V\fR
Print version number and exits from the program. Print version number and exits from the program.
.PP .PP
@ -28,7 +30,7 @@ filename is infile.h.
.IP \fB-t\fR .IP \fB-t\fR
Generate a type library. Generate a type library.
.IP "\fB-T \fIfile\fR" .IP "\fB-T \fIfile\fR"
Define the name of the type library to be generated. Define the name of the type library to be generated.
The default filename is infile.tlb. The default filename is infile.tlb.
.PP .PP
.B Proxy/stub generation options: .B Proxy/stub generation options:
@ -47,7 +49,7 @@ Name of server stub file (default is infile_s.c)
.PP .PP
.B Preprocessor options: .B Preprocessor options:
.IP "\fB-I \fIpath\fR" .IP "\fB-I \fIpath\fR"
Add a header search dir to path. Multiple search Add a header search dir to path. Multiple search
dirs are allowed. dirs are allowed.
.IP "\fB-D \fIid[=val]\fR" .IP "\fB-D \fIid[=val]\fR"
Define preprocessor identifier id value. Define preprocessor identifier id value.
@ -61,7 +63,7 @@ Do not preprocess input.
Enable pedantic warnings. Enable pedantic warnings.
.IP "\fB-d \fIn\fR" .IP "\fB-d \fIn\fR"
.nf .nf
Set debug level to n. Set debug level to n.
n may be '0x01', '0x02', '0x04', '0x08', '0x10' or '0x20'. n may be '0x01', '0x02', '0x04', '0x08', '0x10' or '0x20'.
(See section \fBDebug\fR) (See section \fBDebug\fR)
.PP .PP