diff options
author | Rafael Garcia-Suarez <rgs@consttype.org> | 2009-10-08 14:31:27 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2009-10-08 14:31:27 +0200 |
commit | 0f811330101bfec92808f71de4fc8d920bec0967 (patch) | |
tree | f3e0a9986e8c45009955cb1ec430d110c9944d3e /perly.y | |
parent | 87c2a47ff8f4b131d303f7c8afda0cbd6c321837 (diff) | |
download | perl-0f811330101bfec92808f71de4fc8d920bec0967.tar.gz |
Restore MAD handling of package statements
Since the version seems unused by MAD in "use", do the same
for "package"...
Diffstat (limited to 'perly.y')
-rw-r--r-- | perly.y | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -635,20 +635,18 @@ subbody : block { $$ = $1; } package : PACKAGE WORD WORD ';' { -/* Since no one seem to understand or use the MAD stuff, but Larry implies - * it shouldn't be removed, it's just commented out, and someone who - * understands it can come along later and fix it up. #ifdef MAD - (yyval.opval) = package((ps[(2) - (3)].val.opval)); - token_getmad((ps[(1) - (3)].val.i_tkval),(yyval.opval),'o'); - token_getmad((ps[(3) - (3)].val.i_tkval),(yyval.opval),';'); + $$ = package($3); + token_getmad($1,$$,'o'); + if ($2) + package_version($2); + token_getmad($4,$$,';'); #else -*/ package($3); - if ($2) { - package_version($2); - } + if ($2) + package_version($2); $$ = (OP*)NULL; +#endif } ; |