Jacek Caban : widl: Ignore -app_config option.
Alexandre Julliard
julliard at winehq.org
Wed Nov 7 14:02:27 CST 2012
Module: wine
Branch: master
Commit: 4d323d176caa2b835996976b3bcb9e36733eb271
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4d323d176caa2b835996976b3bcb9e36733eb271
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Nov 7 11:25:21 2012 +0100
widl: Ignore -app_config option.
---
tools/widl/widl.c | 11 +++++++++--
tools/widl/widl.man.in | 2 ++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/tools/widl/widl.c b/tools/widl/widl.c
index 8186b77..1718247 100644
--- a/tools/widl/widl.c
+++ b/tools/widl/widl.c
@@ -51,6 +51,7 @@
static const char usage[] =
"Usage: widl [options...] infile.idl\n"
" or: widl [options...] --dlldata-only name1 [name2...]\n"
+" -app_config Ignored, present for midl compatibility\n"
" -b arch Set the target architecture\n"
" -c Generate client stub\n"
" -d n Set debug level to 'n'\n"
@@ -154,7 +155,8 @@ enum {
WIN32_OPTION,
WIN64_OPTION,
WIN32_ALIGN_OPTION,
- WIN64_ALIGN_OPTION
+ WIN64_ALIGN_OPTION,
+ APP_CONFIG_OPTION
};
static const char short_options[] =
@@ -173,6 +175,7 @@ static const struct option long_options[] = {
{ "win64", 0, NULL, WIN64_OPTION },
{ "win32-align", 1, NULL, WIN32_ALIGN_OPTION },
{ "win64-align", 1, NULL, WIN64_ALIGN_OPTION },
+ { "app_config", 0, NULL, APP_CONFIG_OPTION },
{ NULL, 0, NULL, 0 }
};
@@ -511,7 +514,7 @@ int main(int argc,char *argv[])
now = time(NULL);
- while((optc = getopt_long(argc, argv, short_options, long_options, &opti)) != EOF) {
+ while((optc = getopt_long_only(argc, argv, short_options, long_options, &opti)) != EOF) {
switch(optc) {
case DLLDATA_OPTION:
dlldata_name = xstrdup(optarg);
@@ -558,6 +561,10 @@ int main(int argc,char *argv[])
if(win64_packing != 2 && win64_packing != 4 && win64_packing != 8)
error("Packing must be one of 2, 4 or 8\n");
break;
+ case APP_CONFIG_OPTION:
+ /* widl does not distinguish between app_mode and default mode,
+ but we ignore this option for midl compatibility */
+ break;
case 'b':
set_target( optarg );
break;
diff --git a/tools/widl/widl.man.in b/tools/widl/widl.man.in
index f74328b..5b6e0de 100644
--- a/tools/widl/widl.man.in
+++ b/tools/widl/widl.man.in
@@ -114,6 +114,8 @@ prefixed with \fB0x\fR, it will be interpreted as an hexadecimal
number. For the meaning of values, see the \fBDebug\fR section.
.PP
.B Miscellaneous options:
+.IP "\fB-app_config\f"
+Ignored, present for midl compatibility.
.IP "\fB--local-stubs=\fIfile\fR"
Generate empty stubs for call_as/local methods in an object interface and
write them to \fIfile\fR.
More information about the wine-cvs
mailing list