/[bison]/bison/src/output.c
ViewVC logotype

Diff of /bison/src/output.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.203 by eggert, Wed Oct 30 06:20:02 2002 UTC revision 1.204 by eggert, Sun Nov 3 06:41:59 2002 UTC
# Line 136  prepare_symbols (void) Line 136  prepare_symbols (void)
136          const char *cp =          const char *cp =
137            quotearg_n_style (1, c_quoting_style,            quotearg_n_style (1, c_quoting_style,
138                              symbols[i]->tag);                              symbols[i]->tag);
139          /* Width of the next token, including the two quotes, the coma          /* Width of the next token, including the two quotes, the comma
140             and the space.  */             and the space.  */
141          int strsize = strlen (cp) + 2;          int strsize = strlen (cp) + 2;
142    
# Line 146  prepare_symbols (void) Line 146  prepare_symbols (void)
146              j = 2;              j = 2;
147            }            }
148    
149          obstack_sgrow (&format_obstack, cp);          for (; *cp; cp++)
150              switch (*cp)
151                {
152                case '[': obstack_sgrow (&format_obstack, "@<:@"); break;
153                case ']': obstack_sgrow (&format_obstack, "@:>@"); break;
154                default: obstack_1grow (&format_obstack, *cp); break;
155                }
156    
157          obstack_sgrow (&format_obstack, ", ");          obstack_sgrow (&format_obstack, ", ");
158          j += strsize;          j += strsize;
159        }        }

Legend:
Removed from v.1.203  
changed lines
  Added in v.1.204

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26