diff options
Diffstat (limited to 'source4/pidl')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba/TDR.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba/TDR.pm b/source4/pidl/lib/Parse/Pidl/Samba/TDR.pm index aa41e9419c..041170c152 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba/TDR.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba/TDR.pm @@ -167,7 +167,7 @@ sub ParserBitmap($$$$) sub ParserEnum($$$$) { my ($e,$n,$t,$p) = @_; - my $bt = Parse::Pidl::Typelist::enum_type_fn($e); + my $bt = ($e->{PROPERTIES}->{base_type} or "uint8"); pidl static($p)."NTSTATUS tdr_$t\_$n (struct tdr_$t *tdr".printarg($t).", enum $n *v)"; pidl "{"; @@ -190,6 +190,8 @@ sub ParserTypedef($$) return if (has_property($e, "no$t")); + $e->{DATA}->{PROPERTIES} = $e->{PROPERTIES}; + { STRUCT => \&ParserStruct, UNION => \&ParserUnion, ENUM => \&ParserEnum, BITMAP => \&ParserBitmap }->{$e->{DATA}->{TYPE}}($e->{DATA}, $e->{NAME}, $t, has_property($e, "public")); |