wrc: Handle "no files == stdin".
This commit is contained in:
parent
051535961a
commit
39d4d12c08
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue