+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>
* src/output.c (output_headers, output_program, output): Be sure
David J. MacKenzie djm@gnu.org
Jesse Thilo jthilo@gnu.org
Jim Meyering meyering@gnu.org
-Neil Booth NeilB@earthling.net
-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
+Laurent Mascherpa laurent.mascherpa@epita.fr
Neil Booth NeilB@earthling.net
Noah Friedman friedman@gnu.org
Paul Eggert eggert@twinsun.com
#include "system.h"
#include "obstack.h"
+#include "quotearg.h"
+#include "quote.h"
#include "getargs.h"
#include "files.h"
#include "xalloc.h"
#include "output.h"
#include "reader.h"
#include "conflicts.h"
-#include "quote.h"
/* Number of slots allocated (but not necessarily used yet) in `rline' */
static int rline_allocated;
int after_percent;
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;
typed = 1;
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
obstack_1grow (&attrs_obstack, '\n');
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_1grow (&action_obstack, '{');
fprintf (fguard, "\ncase %d:\n", nrules);
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);
count = 0;