summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-02-06 00:18:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:33 -0500
commite2e8db3a6562f75f1f495de9617ba020a82d666b (patch)
tree295612b5e5f11d51966094a69953ad592889a2bc /source4
parent480ee7243c06aff088c6ad7c2fd122f87c58f42d (diff)
downloadsamba-e2e8db3a6562f75f1f495de9617ba020a82d666b.tar.gz
samba-e2e8db3a6562f75f1f495de9617ba020a82d666b.tar.bz2
samba-e2e8db3a6562f75f1f495de9617ba020a82d666b.zip
r5241: Generate swig wrappers for unions as well as structures.
(This used to be commit e65741159d8578d629ccfcd863f034fda895f9fe)
Diffstat (limited to 'source4')
-rw-r--r--source4/build/pidl/swig.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/build/pidl/swig.pm b/source4/build/pidl/swig.pm
index 2b8daf40ff..11894719f5 100644
--- a/source4/build/pidl/swig.pm
+++ b/source4/build/pidl/swig.pm
@@ -709,9 +709,9 @@ sub RewriteHeader($$$)
s/dom_sid2/dom_sid/g;
- # Copy structure definitions
+ # Copy structure and union definitions
- if (/^struct .*? {$/ .. /^\};$/) {
+ if (/^(struct|union) .*? {$/ .. /^\};$/) {
s/\} (in|out);/\} data_$1;/; # "in" is a Python keyword
pidl $_;
next;