/[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.1 by marc, Mon Sep 17 22:20:07 2001 UTC revision 1.51.2.2 by marc, Mon Sep 17 23:00:01 2001 UTC
# Line 39  struct obstack graph_obstack; Line 39  struct obstack graph_obstack;
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;
# Line 418  output_files (void) Line 420  output_files (void)
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);
# Line 439  output_files (void) Line 441  output_files (void)
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)
# Line 466  output_files (void) Line 468  output_files (void)
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  }  }

Legend:
Removed from v.1.51.2.1  
changed lines
  Added in v.1.51.2.2

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