22 |
#include "system.h" |
#include "system.h" |
23 |
#include "getargs.h" |
#include "getargs.h" |
24 |
#include "files.h" |
#include "files.h" |
|
#include "xalloc.h" |
|
25 |
#include "gram.h" |
#include "gram.h" |
26 |
#include "complain.h" |
#include "complain.h" |
27 |
|
|
466 |
obstack_save (&table_obstack, spec_outfile); |
obstack_save (&table_obstack, spec_outfile); |
467 |
else |
else |
468 |
obstack_save (&table_obstack, stringappend (base_name, src_extension)); |
obstack_save (&table_obstack, stringappend (base_name, src_extension)); |
469 |
|
obstack_free (&table_obstack, NULL); |
470 |
|
|
471 |
/* Output the header file if wanted. */ |
/* Output the header file if wanted. */ |
472 |
if (defines_flag) |
if (defines_flag) |
473 |
defines_obstack_save (spec_defines_file); |
defines_obstack_save (spec_defines_file); |
474 |
|
obstack_free (&defines_obstack, NULL); |
475 |
|
|
476 |
/* If we output only the table, dump the actions in ACTFILE. */ |
/* If we output only the table, dump the actions in ACTFILE. */ |
477 |
if (no_parser_flag) |
if (no_parser_flag) |
478 |
obstack_save (&action_obstack, stringappend (short_base_name, ".act")); |
obstack_save (&action_obstack, stringappend (short_base_name, ".act")); |
479 |
|
obstack_free (&action_obstack, NULL); |
480 |
|
|
481 |
/* If we produced a semantic parser ATTRS_OBSTACK must be dumped |
/* If we produced a semantic parser ATTRS_OBSTACK must be dumped |
482 |
into its own file, ATTTRSFILE. */ |
into its own file, ATTTRSFILE. */ |
485 |
char *temp_name; |
char *temp_name; |
486 |
|
|
487 |
obstack_save (&attrs_obstack, attrsfile); |
obstack_save (&attrs_obstack, attrsfile); |
488 |
|
obstack_free (&attrs_obstack, NULL); |
489 |
temp_name = stringappend (short_base_name, EXT_GUARD_C); |
temp_name = stringappend (short_base_name, EXT_GUARD_C); |
490 |
#ifndef MSDOS |
#ifndef MSDOS |
491 |
temp_name = stringappend (temp_name, src_extension); |
temp_name = stringappend (temp_name, src_extension); |
492 |
#endif /* MSDOS */ |
#endif /* MSDOS */ |
493 |
obstack_save (&guard_obstack, temp_name); |
obstack_save (&guard_obstack, temp_name); |
494 |
|
obstack_free (&guard_obstack, NULL); |
495 |
} |
} |
496 |
} |
} |