Author: tpot
Date: 2005-08-02 14:58:59 +0000 (Tue, 02 Aug 2005)
New Revision: 8918

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8918

Log:
Handle const elements in structures or unions.  This is a bit yucky but
making an optional_const rule puts the parser in an infinite loop (?).

Modified:
   branches/SAMBA_4_0/source/build/pidl/smb_interfaces.yp


Changeset:
Modified: branches/SAMBA_4_0/source/build/pidl/smb_interfaces.yp
===================================================================
--- branches/SAMBA_4_0/source/build/pidl/smb_interfaces.yp      2005-08-02 
14:04:22 UTC (rev 8917)
+++ branches/SAMBA_4_0/source/build/pidl/smb_interfaces.yp      2005-08-02 
14:58:59 UTC (rev 8918)
@@ -70,6 +70,12 @@
        | 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],

Reply via email to