summaryrefslogtreecommitdiff
path: root/source4/build/pidl/util.pm
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-19 00:40:40 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-19 00:40:40 +0000
commitf46072d2232c76b8ec29ce7d76b81fe7bbb4bc26 (patch)
treea280ffce9c62312af9dcac386f172012cc1691b4 /source4/build/pidl/util.pm
parent8369293090f79cb07af827dc6a7ec36c4ecbdcbb (diff)
downloadsamba-f46072d2232c76b8ec29ce7d76b81fe7bbb4bc26.tar.gz
samba-f46072d2232c76b8ec29ce7d76b81fe7bbb4bc26.tar.bz2
samba-f46072d2232c76b8ec29ce7d76b81fe7bbb4bc26.zip
added code to the IDL validator to check for common errors with
pointers are arrays (This used to be commit e67cbfff6c1041671711e4f73894e6e13151d57e)
Diffstat (limited to 'source4/build/pidl/util.pm')
-rw-r--r--source4/build/pidl/util.pm13
1 files changed, 11 insertions, 2 deletions
diff --git a/source4/build/pidl/util.pm b/source4/build/pidl/util.pm
index b732c185b2..2a4c0de74d 100644
--- a/source4/build/pidl/util.pm
+++ b/source4/build/pidl/util.pm
@@ -134,13 +134,22 @@ sub ChangeExtension($$)
}
#####################################################################
+# a dumper wrapper to prevent dependence on the Data::Dumper module
+# unless we actually need it
+sub MyDumper($)
+{
+ require Data::Dumper;
+ my $s = shift;
+ return Data::Dumper::Dumper($s);
+}
+
+#####################################################################
# save a data structure into a file
sub SaveStructure($$)
{
- require Data::Dumper;
my($filename) = shift;
my($v) = shift;
- FileSave($filename, Data::Dumper::Dumper($v));
+ FileSave($filename, MyDumper($v));
}
#####################################################################