diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-03 20:09:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:36:28 -0500 |
commit | e9b5bf90e646af31c23631d08a73dcc8adca456e (patch) | |
tree | 2ad26c29e746ae5f9c55712ceb125b26239872c6 /source4/pidl/lib/Parse | |
parent | 102a6ec95b2487d4ef13de2120be00e2818cce23 (diff) | |
download | samba-e9b5bf90e646af31c23631d08a73dcc8adca456e.tar.gz samba-e9b5bf90e646af31c23631d08a73dcc8adca456e.tar.bz2 samba-e9b5bf90e646af31c23631d08a73dcc8adca456e.zip |
r10010: Support base_type() attribute
(This used to be commit c0bae9b0b5cb56aea98e33b4d0a9d29c6622dd27)
Diffstat (limited to 'source4/pidl/lib/Parse')
-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")); |