r7119: the content of a subcontext can contain deferred data,
authorStefan Metzmacher <metze@samba.org>
Mon, 30 May 2005 18:40:36 +0000 (18:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:19 +0000 (13:17 -0500)
but for the caller a subcontext is like a scalar...
the first point is more important and is fixed with this commit,
however it would be nice if we could make them look like scalars to the callers later

metze
(This used to be commit 8a16aa6401ff57624e35b785b8f6a6acda56ea1f)

source4/build/pidl/ndr.pm

index 09b2f0f2572bec5fa3b683c6e6f2bc21198f1f30..876fbc247c09a5b264eeded1b7ce50b10014ce56 100644 (file)
@@ -179,7 +179,7 @@ sub can_contain_deferred
 
        return 1 if ($e->{POINTERS});
        return 0 if (typelist::is_scalar($e->{TYPE}));
-       return 0 if (defined(util::has_property($e, "subcontext")));
+       return 1 if (defined(util::has_property($e, "subcontext")));
        return 1 unless (typelist::hasType($e->{TYPE})); # assume the worst
 
        my $type = typelist::getType($e->{TYPE});