Skip to content

Commit

Permalink
d: don't trigger GC in void toString
Browse files Browse the repository at this point in the history
* data/skeletons/d.m4 (b4_declare_symbol_enum): Here.
  • Loading branch information
adelavais authored and akimd committed Oct 2, 2020
1 parent 72360b5 commit 3829bd6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions data/skeletons/d.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 3829bd6

Please sign in to comment.