pidl: add support for pointers in typedefs
[garming/samba-autobuild/.git] / pidl / idl.yp
index dc8e293f765046eca4b3bb89e22b7a1b8e9999b7..b3d5ed16ac0657c1d5994531aeed720629528400 100644 (file)
@@ -169,13 +169,14 @@ function:
 ;
 
 typedef:
-       property_list 'typedef' type identifier array_len ';'
+       property_list 'typedef' type pointers identifier array_len ';'
        {{
                "TYPE" => "TYPEDEF",
                "PROPERTIES" => $_[1],
-               "NAME" => $_[4],
+               "NAME" => $_[5],
                "DATA" => $_[3],
-               "ARRAY_LEN" => $_[5],
+               "POINTERS" => $_[4],
+               "ARRAY_LEN" => $_[6],
                "FILE" => $_[0]->YYData->{FILE},
                "LINE" => $_[0]->YYData->{LINE},
         }}