From 6339cc75fae8296757c4609cede1d5703b90d52a Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 2 Aug 2005 14:58:59 +0000 Subject: [PATCH] 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 (?). --- source/build/pidl/smb_interfaces.yp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/build/pidl/smb_interfaces.yp b/source/build/pidl/smb_interfaces.yp index 704c0522baf..0281fad4c60 100644 --- a/source/build/pidl/smb_interfaces.yp +++ b/source/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], -- 2.34.1