wrc: Handle "no files == stdin".

This commit is contained in:
Marcus Meissner 2009-08-08 11:00:36 +02:00 committed by Alexandre Julliard
parent 051535961a
commit 39d4d12c08
1 changed files with 7 additions and 0 deletions

View File

@ -514,6 +514,13 @@ int main(int argc,char *argv[])
} }
if (load_file( input_name, output_name )) exit(1); 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) if(debuglevel & DEBUGLEVEL_DUMP)
dump_resources(resource_top); dump_resources(resource_top);