summaryrefslogtreecommitdiff
path: root/pidl/idl.yp
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-08-05 13:40:38 +0200
committerStefan Metzmacher <metze@samba.org>2009-08-07 11:50:24 +0200
commit558ff911df1e16e28e3a1efa0849c9083d08c617 (patch)
tree04a60b2a93e0782dac27330726099c28ff27dcab /pidl/idl.yp
parent20a6fb5cdb15b138021076e14c1df8f4ebb06184 (diff)
downloadsamba-558ff911df1e16e28e3a1efa0849c9083d08c617.tar.gz
samba-558ff911df1e16e28e3a1efa0849c9083d08c617.tar.bz2
samba-558ff911df1e16e28e3a1efa0849c9083d08c617.zip
pidl: parse idl 'pipe' typedefs, but print out a not supported message for now
metze
Diffstat (limited to 'pidl/idl.yp')
-rw-r--r--pidl/idl.yp15
1 files changed, 14 insertions, 1 deletions
diff --git a/pidl/idl.yp b/pidl/idl.yp
index 399ff74f41..dc8e293f76 100644
--- a/pidl/idl.yp
+++ b/pidl/idl.yp
@@ -189,6 +189,8 @@ usertype:
enum
|
bitmap
+ |
+ pipe
;
typedecl:
@@ -379,6 +381,17 @@ pointers:
pointers '*' { $_[1]+1 }
;
+pipe:
+ property_list 'pipe' type
+ {{
+ "TYPE" => "PIPE",
+ "PROPERTIES" => $_[1],
+ "DATA" => $_[3],
+ "FILE" => $_[0]->YYData->{FILE},
+ "LINE" => $_[0]->YYData->{LINE},
+ }}
+;
+
element_list1:
#empty
{ [] }
@@ -603,7 +616,7 @@ again:
if ($1 =~
/^(coclass|interface|import|importlib
|include|cpp_quote|typedef
- |union|struct|enum|bitmap
+ |union|struct|enum|bitmap|pipe
|void|const|unsigned|signed)$/x) {
return $1;
}