From e2e8db3a6562f75f1f495de9617ba020a82d666b Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 6 Feb 2005 00:18:46 +0000 Subject: r5241: Generate swig wrappers for unions as well as structures. (This used to be commit e65741159d8578d629ccfcd863f034fda895f9fe) --- source4/build/pidl/swig.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/build') 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; -- cgit