39 |
char *spec_outfile = NULL; /* for -o. */ |
char *spec_outfile = NULL; /* for -o. */ |
40 |
char *spec_file_prefix = NULL; /* for -b. */ |
char *spec_file_prefix = NULL; /* for -b. */ |
41 |
char *spec_name_prefix = NULL; /* for -p. */ |
char *spec_name_prefix = NULL; /* for -p. */ |
42 |
|
char *spec_graph_file = NULL; /* for -g. */ |
43 |
|
char *spec_defines_file = NULL; /* for --defines. */ |
44 |
|
|
45 |
char *infile = NULL; |
char *infile = NULL; |
46 |
char *attrsfile = NULL; |
char *attrsfile = NULL; |
420 |
|
|
421 |
compute_base_names (); |
compute_base_names (); |
422 |
|
|
423 |
#if 0 |
/* It the defines filename if not given, we create it. */ |
424 |
/* Set default extensions */ |
if (!spec_defines_file) |
425 |
if (!src_extension) |
spec_defines_file = stringappend (base_name, header_extension); |
426 |
src_extension = ".c"; |
|
427 |
if (!header_extension) |
/* It the graph filename if not given, we create it. */ |
428 |
header_extension = ".h"; |
if (!spec_graph_file) |
429 |
#endif |
spec_graph_file = stringappend (short_base_name, ".vcg"); |
430 |
|
|
431 |
attrsfile = stringappend (short_base_name, EXT_STYPE_H); |
attrsfile = stringappend (short_base_name, EXT_STYPE_H); |
432 |
#ifndef MSDOS |
#ifndef MSDOS |
433 |
stringappend (attrsfile, header_extension); |
stringappend (attrsfile, header_extension); |
441 |
|
|
442 |
/* Output the header file if wanted. */ |
/* Output the header file if wanted. */ |
443 |
if (defines_flag) |
if (defines_flag) |
444 |
defines_obstack_save (stringappend (base_name, header_extension)); |
defines_obstack_save (spec_defines_file); |
445 |
|
|
446 |
/* If we output only the table, dump the actions in ACTFILE. */ |
/* If we output only the table, dump the actions in ACTFILE. */ |
447 |
if (no_parser_flag) |
if (no_parser_flag) |
468 |
stringappend (short_base_name, EXT_OUTPUT)); |
stringappend (short_base_name, EXT_OUTPUT)); |
469 |
|
|
470 |
if (graph_flag) |
if (graph_flag) |
471 |
obstack_save (&graph_obstack, stringappend (short_base_name, ".vcg")); |
obstack_save (&graph_obstack, spec_graph_file); |
472 |
} |
} |