X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perly.c;h=42efd9a0c408c3ff129998dfce45cd00c6c14e4f;hb=54dc0f912bb497a6d6861fbfa3f067ec3cfdfe0c;hp=6e92e27f62d93acef1dcb8bde06e3f053d03b702;hpb=a28509cc00517ad2ad1f6e022f1be6ab8f1ad18e;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perly.c b/perly.c index 6e92e27..42efd9a 100644 --- a/perly.c +++ b/perly.c @@ -1,6 +1,6 @@ /* perly.c * - * Copyright (c) 2004 Larry Wall + * Copyright (c) 2004, 2005, 2006 Larry Wall and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. @@ -250,6 +250,7 @@ yystpcpy (pTHX_ char *yydest, const char *yysrc) int Perl_yyparse (pTHX) { + dVAR; int yychar; /* The lookahead symbol. */ YYSTYPE yylval; /* The semantic value of the lookahead symbol. */ int yynerrs; /* Number of syntax errors so far. */ @@ -567,7 +568,7 @@ Perl_yyparse (pTHX) yysize += yystrlen (yytname[yyx]) + 15, yycount++; yysize += yystrlen ("syntax error, unexpected ") + 1; yysize += yystrlen (yytname[yytype]); - New(yymsg, yysize, char *); + Newx(yymsg, yysize, char *); if (yymsg != 0) { const char *yyp = yystpcpy (yymsg, "syntax error, unexpected "); yyp = yystpcpy (yyp, yytname[yytype]);