mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +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] == '"')
|
if (yystr[0] == '"')
|
||||||
{
|
{
|
||||||
string yyr;
|
|
||||||
strip_quotes:
|
strip_quotes:
|
||||||
for (int i = 1; i < yystr.length; i++)
|
for (int i = 1; i < yystr.length; i++)
|
||||||
switch (yystr[i])
|
switch (yystr[i])
|
||||||
@@ -269,11 +268,10 @@ m4_define([b4_declare_symbol_enum],
|
|||||||
break strip_quotes;
|
break strip_quotes;
|
||||||
goto default;
|
goto default;
|
||||||
default:
|
default:
|
||||||
yyr ~= yystr[i];
|
put(sink, yystr[i]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '"':
|
case '"':
|
||||||
put(sink, yyr);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user