mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
d: don't trigger GC in void toString
* data/skeletons/d.m4 (b4_declare_symbol_enum): Here.
This commit is contained in:
committed by
Akim Demaille
parent
72360b51a5
commit
3829bd6262
@@ -255,7 +255,6 @@ m4_define([b4_declare_symbol_enum],
|
||||
|
||||
if (yystr[0] == '"')
|
||||
{
|
||||
string yyr;
|
||||
strip_quotes:
|
||||
for (int i = 1; i < yystr.length; i++)
|
||||
switch (yystr[i])
|
||||
@@ -269,11 +268,10 @@ m4_define([b4_declare_symbol_enum],
|
||||
break strip_quotes;
|
||||
goto default;
|
||||
default:
|
||||
yyr ~= yystr[i];
|
||||
put(sink, yystr[i]);
|
||||
break;
|
||||
|
||||
case '"':
|
||||
put(sink, yyr);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user