r10787: Fix silly nodiscriminant-issue
authorJelmer Vernooij <jelmer@samba.org>
Thu, 6 Oct 2005 20:07:53 +0000 (20:07 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 6 Oct 2005 20:07:53 +0000 (20:07 +0000)
source/pidl/TODO
source/pidl/lib/Parse/Pidl/Samba3/Parser.pm

index 1f5875aebe983ba55678f4effd25a1593b1b5d47..9fc3a7d9048abfc0c24550316cdd3d9fe8f76c21 100644 (file)
@@ -10,3 +10,7 @@
   a (regular) remote error occurs
  
 - support nested elements
+
+- Don't output [ref] pointers for Samba 4?
+- alternative to subcontext()
index 7cd1255a40f94d5faf2a04d8612ee3119620d8df..eaab50b553c1d7f02c02a1520f7e4e229c570cfe 100644 (file)
@@ -394,7 +394,7 @@ sub ParseUnion($$$)
        indent;
        DeclareArrayVariables($u->{ELEMENTS});
 
-       if (has_property($u, "nodiscriminant")) {
+       unless (has_property($u, "nodiscriminant")) {
                pidl "if (!prs_uint32(\"switch_value\", ps, depth, &v->switch_value))";
                pidl "\treturn False;";
                pidl "";