r8918: Handle const elements in structures or unions. This is a bit yucky but
authorTim Potter <tpot@samba.org>
Tue, 2 Aug 2005 14:58:59 +0000 (14:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:30:57 +0000 (13:30 -0500)
making an optional_const rule puts the parser in an infinite loop (?).

source/build/pidl/smb_interfaces.yp

index 704c0522baf773b7f2b2ccf1107346d6e01feab2..0281fad4c6038e782118b26c3069ba53332be4fb 100644 (file)
@@ -70,6 +70,12 @@ element:
        | union
        | STRUCT IDENTIFIER pointers IDENTIFIER ';'
        | UNION IDENTIFIER pointers IDENTIFIER ';'
+       | CONST type pointers IDENTIFIER array ';'
+             {{
+                          "NAME" => $_[4],
+                          "TYPE" => $_[2],
+                          "POINTERS" => $_[3],
+              }}
        | type pointers IDENTIFIER array ';'
              {{
                           "NAME" => $_[3],