X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/275fc3ad0fe524a7c322713ddc4c44361a6a082f..c97011bfc1cabd3f7aa8e263f83d9e8a18a262bf:/src/vcg.c diff --git a/src/vcg.c b/src/vcg.c index 5e3263e4..a5a5a303 100644 --- a/src/vcg.c +++ b/src/vcg.c @@ -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); }