git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d532197
)
pidl: fix generated s3-server in,out,ref qualifiers that are used for buffer allocation.
author
Günther Deschner
<gd@samba.org>
Wed, 19 Nov 2008 11:38:38 +0000
(12:38 +0100)
committer
Günther Deschner
<gd@samba.org>
Wed, 19 Nov 2008 20:50:02 +0000
(21:50 +0100)
Guenther
pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index e5d8f1c1d2b8c4ae42710d59e4b47dd7949384a2..eb3cdf20cb060d2c18fb19abcae946c109bf38c4 100644
(file)
--- a/
pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/
pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
@@
-142,6
+142,13
@@
sub ParseFunction($$)
my @dir = @{$_->{DIRECTION}};
if (grep(/in/, @dir) and grep(/out/, @dir)) {
pidl "r->out.$_->{NAME} = r->in.$_->{NAME};";
+ }
+ }
+
+ foreach (@{$fn->{ELEMENTS}}) {
+ my @dir = @{$_->{DIRECTION}};
+ if (grep(/in/, @dir) and grep(/out/, @dir)) {
+ # noop
} elsif (grep(/out/, @dir) and not
has_property($_, "represent_as")) {
AllocOutVar($_, "r", "r->out.$_->{NAME}", $env);