summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgs@consttype.org>2009-10-08 14:31:27 +0200
committerRafael Garcia-Suarez <rgs@consttype.org>2009-10-08 14:31:27 +0200
commit0f811330101bfec92808f71de4fc8d920bec0967 (patch)
treef3e0a9986e8c45009955cb1ec430d110c9944d3e /perly.y
parent87c2a47ff8f4b131d303f7c8afda0cbd6c321837 (diff)
downloadperl-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.y18
1 files changed, 8 insertions, 10 deletions
diff --git a/perly.y b/perly.y
index 0616692470..5ec5845de2 100644
--- a/perly.y
+++ b/perly.y
@@ -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
}
;