mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 16:23:04 +00:00
* src/output.c (escaped_output): Renamed from
escaped_file_name_output, since we now use it for symbol tags as well. All uses changed. (symbol_destructors_output, symbol_printers_output): Escape symbol tags too. Problem reported by Matyas Forstner in <http://lists.gnu.org/archive/html/bug-bison/2005-03/msg00009.html>. * src/muscle_tab.c (muscle_code_grow): Don't quote numbers; it's not needed. * src/output.c (user_actions_output, token_definitions_output, symbol_destructors_output, symbol_printers_output): Likewise. * src/reader.c (prologue_augment): Likewise. * src/scan-gram.l (handle_action_dollar, handle_action_at): Likewise.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/* Muscle table manager for Bison.
|
||||
|
||||
Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of Bison, the GNU Compiler Compiler.
|
||||
|
||||
@@ -163,7 +164,7 @@ void
|
||||
muscle_code_grow (const char *key, const char *val, location loc)
|
||||
{
|
||||
char *extension = NULL;
|
||||
obstack_fgrow1 (&muscle_obstack, "]b4_syncline([[%d]], [[", loc.start.line);
|
||||
obstack_fgrow1 (&muscle_obstack, "]b4_syncline(%d, [[", loc.start.line);
|
||||
MUSCLE_OBSTACK_SGROW (&muscle_obstack,
|
||||
quotearg_style (c_quoting_style, loc.start.file));
|
||||
obstack_sgrow (&muscle_obstack, "]])[\n");
|
||||
|
||||
Reference in New Issue
Block a user