mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
Initialize the muscle table before parsing the command line.
* src/getargs.c (quotearg.h, muscle_tab.h): Include. (getargs): Define file_name. * src/main.c (main): Initialize muscle_tab before calling getargs. * src/muscle_tab.c (muscle_init): No longer define file_name, as its value is not available yet.
This commit is contained in:
committed by
Joel E. Denny
parent
33d2a86079
commit
75c21b618d
@@ -1,7 +1,7 @@
|
||||
/* Muscle table manager for Bison.
|
||||
|
||||
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software
|
||||
Foundation, Inc.
|
||||
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free
|
||||
Software Foundation, Inc.
|
||||
|
||||
This file is part of Bison, the GNU Compiler Compiler.
|
||||
|
||||
@@ -85,7 +85,6 @@ muscle_init (void)
|
||||
|
||||
/* Version and input file. */
|
||||
MUSCLE_INSERT_STRING ("version", VERSION);
|
||||
MUSCLE_INSERT_C_STRING ("file_name", grammar_file);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user