Q about pidl client code in Samba 3
Gerald (Jerry) Carter
jerry at samba.org
Wed Sep 27 22:57:15 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Index: lib/Parse/Pidl/Samba3/ClientNDR.pm
===================================================================
- --- lib/Parse/Pidl/Samba3/ClientNDR.pm (revision 18964)
+++ lib/Parse/Pidl/Samba3/ClientNDR.pm (working copy)
@@ -71,7 +71,16 @@
fatal($e, "[out] argument is not a pointer or array") if
($e->{LEVELS}[0]->{TYPE} ne "POINTER" and $e->{LEVELS}[0]->{TYPE} ne
"ARRAY");
- - pidl "*$e->{NAME} = *r.out.$e->{NAME};";
+ if ( ($e->{LEVELS}[0]->{TYPE} eq "POINTER") &&
($e->{LEVELS}[0]->{POINTER_TYPE} eq "unique") ) {
+ pidl "if ( *$e->{NAME} ) {";
I should stop today I guess. This should be
pidl "if ( $e->{NAME} ) {";
+ indent;
+ pidl "*$e->{NAME} = *r.out.$e->{NAME};";
+ deindent;
+ pidl "}";
+ } else {
+ pidl "*$e->{NAME} = *r.out.$e->{NAME};";
+ }
+
}
pidl"";
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFGwHLIR7qMdg1EfYRAvFWAKCdj78qHdyxm09iVDXGCxROymNshACg12KL
Y2AcX5SttrTbi9SCEwjp/M0=
=8F19
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list