summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-10-12 04:50:52 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-10-12 04:50:52 +0000
commite1f15930cb6cb2f68ab17efdb7c081df813554a9 (patch)
treeacf3731484333ee802f786291beda23d50fffed2 /perly.y
parent04dc9db9ad04317b0c2997dfa065b4061e90e683 (diff)
downloadperl-e1f15930cb6cb2f68ab17efdb7c081df813554a9.tar.gz
various cleanups
p4raw-id: //depot/perl@4350
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y17
1 files changed, 1 insertions, 16 deletions
diff --git a/perly.y b/perly.y
index 93e5f77af9..c8163e135e 100644
--- a/perly.y
+++ b/perly.y
@@ -39,22 +39,7 @@ struct ysv {
YYSTYPE oldyylval;
};
-static void yydestruct(void *ptr);
-
-static void
-yydestruct(void *ptr)
-{
- struct ysv* ysave = (struct ysv*)ptr;
- if (ysave->yyss) Safefree(ysave->yyss);
- if (ysave->yyvs) Safefree(ysave->yyvs);
- yydebug = ysave->oldyydebug;
- yynerrs = ysave->oldyynerrs;
- yyerrflag = ysave->oldyyerrflag;
- yychar = ysave->oldyychar;
- yyval = ysave->oldyyval;
- yylval = ysave->oldyylval;
- Safefree(ysave);
-}
+static void yydestruct(pTHXo_ void *ptr);
%}