Marcus Meissner : wrc: Handle "no files == stdin".
Alexandre Julliard
julliard at winehq.org
Mon Aug 10 10:34:57 CDT 2009
Module: wine
Branch: master
Commit: 39d4d12c08e033d997c25d28078c65f3ab8f6a11
URL: http://source.winehq.org/git/wine.git/?a=commit;h=39d4d12c08e033d997c25d28078c65f3ab8f6a11
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sat Aug 8 11:00:36 2009 +0200
wrc: Handle "no files == stdin".
---
tools/wrc/wrc.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/tools/wrc/wrc.c b/tools/wrc/wrc.c
index 6a856eb..5879d92 100644
--- a/tools/wrc/wrc.c
+++ b/tools/wrc/wrc.c
@@ -514,6 +514,13 @@ int main(int argc,char *argv[])
}
if (load_file( input_name, output_name )) exit(1);
}
+ /* stdin special case. NULL means "stdin" for wpp. */
+ if (nb_files == 0)
+ {
+ if(!output_name && !preprocess_only)
+ output_name = strdup("wrc.tab.res");
+ if (load_file( NULL, output_name )) exit(1);
+ }
if(debuglevel & DEBUGLEVEL_DUMP)
dump_resources(resource_top);
More information about the wine-cvs
mailing list