mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
* src/reader.c (copy_definition, parse_union_decl, copy_action)
(copy_guard): Quote the file names. Reported by Laurent Mascherpa.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2000-12-12 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/reader.c (copy_definition, parse_union_decl, copy_action)
|
||||||
|
(copy_guard): Quote the file names.
|
||||||
|
Reported by Laurent Mascherpa.
|
||||||
|
|
||||||
2000-12-12 Akim Demaille <akim@epita.fr>
|
2000-12-12 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* src/output.c (output_headers, output_program, output): Be sure
|
* src/output.c (output_headers, output_program, output): Be sure
|
||||||
|
|||||||
17
THANKS
17
THANKS
@@ -2,22 +2,7 @@ Daniel Hagerty hag@gnu.org
|
|||||||
David J. MacKenzie djm@gnu.org
|
David J. MacKenzie djm@gnu.org
|
||||||
Jesse Thilo jthilo@gnu.org
|
Jesse Thilo jthilo@gnu.org
|
||||||
Jim Meyering meyering@gnu.org
|
Jim Meyering meyering@gnu.org
|
||||||
Neil Booth NeilB@earthling.net
|
Laurent Mascherpa laurent.mascherpa@epita.fr
|
||||||
Noah Friedman friedman@gnu.org
|
|
||||||
Paul Eggert eggert@twinsun.com
|
|
||||||
Piotr Gackiewicz gacek@intertel.com.pl
|
|
||||||
Richard Stallman rms@gnu.org
|
|
||||||
|
|
||||||
Many people are not named here because we lost track of them. We
|
|
||||||
thank them! Please, help us keeping this list up to date.
|
|
||||||
|
|
||||||
Local Variables:
|
|
||||||
mode: text
|
|
||||||
End:
|
|
||||||
Daniel Hagerty hag@gnu.org
|
|
||||||
David J. MacKenzie djm@gnu.org
|
|
||||||
Jesse Thilo jthilo@gnu.org
|
|
||||||
Jim Meyering meyering@gnu.org
|
|
||||||
Neil Booth NeilB@earthling.net
|
Neil Booth NeilB@earthling.net
|
||||||
Noah Friedman friedman@gnu.org
|
Noah Friedman friedman@gnu.org
|
||||||
Paul Eggert eggert@twinsun.com
|
Paul Eggert eggert@twinsun.com
|
||||||
|
|||||||
15
src/reader.c
15
src/reader.c
@@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "obstack.h"
|
#include "obstack.h"
|
||||||
|
#include "quotearg.h"
|
||||||
|
#include "quote.h"
|
||||||
#include "getargs.h"
|
#include "getargs.h"
|
||||||
#include "files.h"
|
#include "files.h"
|
||||||
#include "xalloc.h"
|
#include "xalloc.h"
|
||||||
@@ -32,7 +34,6 @@
|
|||||||
#include "output.h"
|
#include "output.h"
|
||||||
#include "reader.h"
|
#include "reader.h"
|
||||||
#include "conflicts.h"
|
#include "conflicts.h"
|
||||||
#include "quote.h"
|
|
||||||
|
|
||||||
/* Number of slots allocated (but not necessarily used yet) in `rline' */
|
/* Number of slots allocated (but not necessarily used yet) in `rline' */
|
||||||
static int rline_allocated;
|
static int rline_allocated;
|
||||||
@@ -461,7 +462,8 @@ copy_definition (void)
|
|||||||
int after_percent;
|
int after_percent;
|
||||||
|
|
||||||
if (!no_lines_flag)
|
if (!no_lines_flag)
|
||||||
obstack_fgrow2 (&attrs_obstack, "#line %d \"%s\"\n", lineno, infile);
|
obstack_fgrow2 (&attrs_obstack, "#line %d %s\n",
|
||||||
|
lineno, quotearg_style (c_quoting_style, infile));
|
||||||
|
|
||||||
after_percent = 0;
|
after_percent = 0;
|
||||||
|
|
||||||
@@ -779,7 +781,8 @@ parse_union_decl (void)
|
|||||||
typed = 1;
|
typed = 1;
|
||||||
|
|
||||||
if (!no_lines_flag)
|
if (!no_lines_flag)
|
||||||
obstack_fgrow2 (&attrs_obstack, "\n#line %d \"%s\"\n", lineno, infile);
|
obstack_fgrow2 (&attrs_obstack, "\n#line %d %s\n",
|
||||||
|
lineno, quotearg_style (c_quoting_style, infile));
|
||||||
else
|
else
|
||||||
obstack_1grow (&attrs_obstack, '\n');
|
obstack_1grow (&attrs_obstack, '\n');
|
||||||
|
|
||||||
@@ -1053,7 +1056,8 @@ copy_action (symbol_list *rule, int stack_offset)
|
|||||||
|
|
||||||
if (!no_lines_flag)
|
if (!no_lines_flag)
|
||||||
{
|
{
|
||||||
sprintf (buf, "#line %d \"%s\"\n", lineno, infile);
|
sprintf (buf, "#line %d %s\n",
|
||||||
|
lineno, quotearg_style (c_quoting_style, infile));
|
||||||
obstack_grow (&action_obstack, buf, strlen (buf));
|
obstack_grow (&action_obstack, buf, strlen (buf));
|
||||||
}
|
}
|
||||||
obstack_1grow (&action_obstack, '{');
|
obstack_1grow (&action_obstack, '{');
|
||||||
@@ -1141,7 +1145,8 @@ copy_guard (symbol_list *rule, int stack_offset)
|
|||||||
|
|
||||||
fprintf (fguard, "\ncase %d:\n", nrules);
|
fprintf (fguard, "\ncase %d:\n", nrules);
|
||||||
if (!no_lines_flag)
|
if (!no_lines_flag)
|
||||||
fprintf (fguard, "#line %d \"%s\"\n", lineno, infile);
|
fprintf (fguard, "#line %d %s\n",
|
||||||
|
lineno, quotearg_style (c_quoting_style, infile));
|
||||||
putc ('{', fguard);
|
putc ('{', fguard);
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user