bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/5] Add type to $$ in mid-rules.


From: Diego Nieto Cid
Subject: [PATCH 1/5] Add type to $$ in mid-rules.
Date: Wed, 11 Aug 2010 20:51:47 -0300

(see http://www.mail-archive.com/address@hidden/msg02159.html )
---
 parser.y |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/parser.y b/parser.y
index 9fe2a39..93966e7 100644
--- a/parser.y
+++ b/parser.y
@@ -336,8 +336,8 @@ mods:
   mods '+' rmod { $$.rmods = $1.rmods | $3; }
 | mods '+' vmod { $$.vmods = $1.vmods | $3; }
        /* Use a mid-rule action to start with no modifiers.  */
-| { $$.rmods = 0; $$.vmods = 0 } rmod          { $$.rmods = $2; }
-| { $$.rmods = 0; $$.vmods = 0 } vmod          { $$.vmods = $2; }
+| { $<modmap>$.rmods = 0; $<modmap>$.vmods = 0 } rmod          { $$.rmods = 
$2; }
+| { $<modmap>$.rmods = 0; $<modmap>$.vmods = 0 } vmod          { $$.vmods = 
$2; }
 | "all"        { $$.rmods = 0xFF; $$.vmods = 0xFFFF}
 | "none"  { $$.rmods = 0; $$.vmods = 0 }
 ;
-- 
1.7.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]