diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-09-06 22:25:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:17:48 -0500 |
commit | c92781b333de6d9f7e5a9330ad4b1681c402cf91 (patch) | |
tree | 45f4fe4385c54fd8fbf9bb2da62667a17f38ece0 /source4/pidl/idl.yp | |
parent | 53605701152cea3fdaefcad788b38b88689e9bc7 (diff) | |
download | samba-c92781b333de6d9f7e5a9330ad4b1681c402cf91.tar.gz samba-c92781b333de6d9f7e5a9330ad4b1681c402cf91.tar.bz2 samba-c92781b333de6d9f7e5a9330ad4b1681c402cf91.zip |
r18194: Allow empty bitmap {} declarations.
(This used to be commit 084b5002b9a8c9790ce81480fe26d57e52789dbb)
Diffstat (limited to 'source4/pidl/idl.yp')
-rw-r--r-- | source4/pidl/idl.yp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/pidl/idl.yp b/source4/pidl/idl.yp index 1f6f22e1a1..43f1db82c8 100644 --- a/source4/pidl/idl.yp +++ b/source4/pidl/idl.yp @@ -174,7 +174,7 @@ enum_element: identifier | identifier '=' anytext { "$_[1]$_[2]$_[3]" } ; -bitmap_body: '{' bitmap_elements '}' { $_[2] }; +bitmap_body: '{' opt_bitmap_elements '}' { $_[2] }; opt_bitmap_body: | bitmap_body; bitmap: 'bitmap' optional_identifier opt_bitmap_body {{ @@ -189,6 +189,8 @@ bitmap_elements: | bitmap_elements ',' bitmap_element { push(@{$_[1]}, $_[3]); $_[1] } ; +opt_bitmap_elements: | bitmap_elements; + bitmap_element: identifier '=' anytext { "$_[1] ( $_[3] )" } ; |