summaryrefslogtreecommitdiff
path: root/source4/build/pidl/parser.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/parser.pm')
-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";