d: don't trigger GC in void toString

* data/skeletons/d.m4 (b4_declare_symbol_enum): Here.
This commit is contained in:
Adela Vais
2020-10-01 02:40:25 +03:00
committed by Akim Demaille
parent 72360b51a5
commit 3829bd6262

View File

@@ -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;
} }
} }