pidl:NDR: [in,out,string] doesn't need to pointers
authorStefan Metzmacher <metze@samba.org>
Wed, 25 Aug 2010 09:02:52 +0000 (11:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 26 Aug 2010 06:49:40 +0000 (08:49 +0200)
metze

pidl/lib/Parse/Pidl/NDR.pm

index 2358a25956397517fa1fcdc483b90ad4e115801b..197a92998c9eb91265390b12eb4e0f643a7da85f 100644 (file)
@@ -104,7 +104,7 @@ sub GetElementLevelTable($$)
        if (has_property($e, "out")) {
                my $needptrs = 1;
 
-               if (has_property($e, "string")) { $needptrs++; }
+               if (has_property($e, "string") and not has_property($e, "in")) { $needptrs++; }
                if ($#bracket_array >= 0) { $needptrs = 0; }
 
                warning($e, "[out] argument `$e->{NAME}' not a pointer") if ($needptrs > $e->{POINTERS});