/[bison]/bison/src/files.c
ViewVC logotype

Diff of /bison/src/files.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.51.2.7 by marc, Mon Sep 24 15:54:18 2001 UTC revision 1.51.2.8 by akim, Tue Sep 25 18:35:04 2001 UTC
# Line 22  Line 22 
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    
# Line 467  output_files (void) Line 466  output_files (void)
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.  */
# Line 483  output_files (void) Line 485  output_files (void)
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  }  }

Legend:
Removed from v.1.51.2.7  
changed lines
  Added in v.1.51.2.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26