Author: tpot
Date: 2005-02-06 00:18:46 +0000 (Sun, 06 Feb 2005)
New Revision: 5241

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5241

Log:
Generate swig wrappers for unions as well as structures.

Modified:
   branches/SAMBA_4_0/source/build/pidl/swig.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/pidl/swig.pm
===================================================================
--- branches/SAMBA_4_0/source/build/pidl/swig.pm        2005-02-05 23:10:31 UTC 
(rev 5240)
+++ branches/SAMBA_4_0/source/build/pidl/swig.pm        2005-02-06 00:18:46 UTC 
(rev 5241)
@@ -709,9 +709,9 @@
 
        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;

Reply via email to