From 4f677289b478ac4adf9afffff0517dfa5337d13d Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 2 Aug 2005 14:58:59 +0000 Subject: r8918: 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 (?). (This used to be commit 6339cc75fae8296757c4609cede1d5703b90d52a) --- source4/build/pidl/smb_interfaces.yp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source4/build/pidl/smb_interfaces.yp b/source4/build/pidl/smb_interfaces.yp index 704c0522ba..0281fad4c6 100644 --- a/source4/build/pidl/smb_interfaces.yp +++ b/source4/build/pidl/smb_interfaces.yp @@ -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], -- cgit