summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-01-06 07:29:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:27 -0500
commit66af8726e525d6978936d5e950b0e4c3af66c86c (patch)
treed6d0df755ffff7d574eb73d314455e80f062527e /source4/build
parent939d37a0f2f1c5193bdbdd20d4fad387a79c5d99 (diff)
downloadsamba-66af8726e525d6978936d5e950b0e4c3af66c86c.tar.gz
samba-66af8726e525d6978936d5e950b0e4c3af66c86c.tar.bz2
samba-66af8726e525d6978936d5e950b0e4c3af66c86c.zip
r4557: support for [flags()] on typedef enum|bitmap
NDR_PAHEX is handled by ndr_print_enum() now metze (This used to be commit c3b2d2cca37193fead0df1a8808c3ffcd5180a89)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/pidl/parser.pm10
1 files changed, 4 insertions, 6 deletions
diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm
index 33937b5800..077fcd4385 100644
--- a/source4/build/pidl/parser.pm
+++ b/source4/build/pidl/parser.pm
@@ -817,9 +817,8 @@ sub ParseEnumPull($)
my($enum) = shift;
my($type_fn) = util::enum_type_fn($enum);
- start_flags($enum);
-
pidl "\t$type_fn v;\n";
+ start_flags($enum);
pidl "\tNDR_CHECK(ndr_pull_$type_fn(ndr, &v));\n";
pidl "\t*r = v;\n";
@@ -832,10 +831,10 @@ sub ParseEnumPrint($)
{
my($enum) = shift;
- start_flags($enum);
-
pidl "\tconst char *val = NULL;\n\n";
+ start_flags($enum);
+
pidl "\tswitch (r) {\n";
my $els = \@{$enum->{ELEMENTS}};
foreach my $i (0 .. $#{$els}) {
@@ -874,9 +873,8 @@ sub ParseBitmapPull($)
my($bitmap) = shift;
my($type_fn) = util::bitmap_type_fn($bitmap);
- start_flags($bitmap);
-
pidl "\t$type_fn v;\n";
+ start_flags($bitmap);
pidl "\tNDR_CHECK(ndr_pull_$type_fn(ndr, &v));\n";
pidl "\t*r = v;\n";