bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06-fix-vcg.patch


From: Akim Demaille
Subject: 06-fix-vcg.patch
Date: Sun, 30 Jun 2002 19:26:53 +0200

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * src/vcg.c (quote): Use slot 2, since we often pass symbol tag
        escaped in slot 0.
        
        
Index: src/vcg.c
--- src/vcg.c Sat, 22 Dec 2001 17:58:53 +0100 akim
+++ src/vcg.c Sat, 29 Jun 2002 12:48:48 +0200 akim
@@ -1,5 +1,5 @@
 /* VCG description handler for Bison.
-   Copyright 2001 Free Software Foundation, Inc.
+   Copyright 2001, 2002 Free Software Foundation, Inc.
 
    This file is part of Bison, the GNU Compiler Compiler.
 
@@ -23,12 +23,14 @@
 #include "vcg_defaults.h"
 #include "quotearg.h"
 
-/* Return an unambiguous printable representated, allocated in slot 0,
-   for NAME, suitable for C strings.  */
+/* Return an unambiguous printable representated, for NAME, suitable
+   for C strings.  Use slot 2 since the user may use slots 0 and 1.
+   */
+
 static char const *
 quote (char const *name)
 {
-  return quotearg_n_style (0, c_quoting_style, name);
+  return quotearg_n_style (2, c_quoting_style, name);
 }
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]