summaryrefslogtreecommitdiff
path: root/source4/build/pidl/idl.gram
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-16 13:48:05 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-16 13:48:05 +0000
commitc4b7585288095cb9459feb237a9581ba30b850d0 (patch)
treeb6deb6afcad3981759012e2301633446e081724f /source4/build/pidl/idl.gram
parentea266c0625e04a2dc10d25c2fee7b685965fcd3e (diff)
downloadsamba-c4b7585288095cb9459feb237a9581ba30b850d0.tar.gz
samba-c4b7585288095cb9459feb237a9581ba30b850d0.tar.bz2
samba-c4b7585288095cb9459feb237a9581ba30b850d0.zip
* the beginnings of non-constant fixed arrays
* added relative pointers support (This used to be commit 4a34a4f29cf8ab79582ce7b503da907df7b4d209)
Diffstat (limited to 'source4/build/pidl/idl.gram')
-rw-r--r--source4/build/pidl/idl.gram9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/build/pidl/idl.gram b/source4/build/pidl/idl.gram
index 1e96431e47..f340b9787e 100644
--- a/source4/build/pidl/idl.gram
+++ b/source4/build/pidl/idl.gram
@@ -78,10 +78,12 @@ base_element: property_list(s?) type pointer(s?) identifier array_len(?)
| <error>
array_len:
- '[]'
+ '[' ']'
{ "*" }
- | '[' <commit> constant ']'
- { $item{constant} }
+ | '[' '*' ']'
+ { "*" }
+ | '[' <commit> text ']'
+ { "$item{text}" }
| <error?>
element_list1: base_element(s? /;/) ';'
@@ -105,6 +107,7 @@ property: 'unique'
| 'context_handle'
| 'string'
| 'public'
+ | 'relative'
| 'subcontext'
| 'byte_count_pointer' '(' expression ')' {{ "$item[1]" => "$item{expression}" }}
| 'size_is' '(' expression ')' {{ "$item[1]" => "$item{expression}" }}