summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-08-15 09:18:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:01:53 -0500
commiteab315fe1e584e96fc84cee96ec842610b2dcdce (patch)
tree60afef783aa3ee4724ae255ac22c7c82437ae667 /source4/pidl/lib/Parse
parent2d531c84e8ba65c86084eeddef8d0259e9363c38 (diff)
downloadsamba-eab315fe1e584e96fc84cee96ec842610b2dcdce.tar.gz
samba-eab315fe1e584e96fc84cee96ec842610b2dcdce.tar.bz2
samba-eab315fe1e584e96fc84cee96ec842610b2dcdce.zip
r24452: bail out instead of only giving a warning on
incorrect idl files metze (This used to be commit 8aacab6f6a04d0f56bed945e07cd894ac1344ace)
Diffstat (limited to 'source4/pidl/lib/Parse')
-rw-r--r--source4/pidl/lib/Parse/Pidl/NDR.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/NDR.pm b/source4/pidl/lib/Parse/Pidl/NDR.pm
index d2556cb8e6..a3282226a1 100644
--- a/source4/pidl/lib/Parse/Pidl/NDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/NDR.pm
@@ -244,15 +244,15 @@ sub GetElementLevelTable($)
}
if (scalar(@size_is) > 0) {
- warning($e, "size_is() on non-array element");
+ fatal($e, "size_is() on non-array element");
}
if (scalar(@length_is) > 0) {
- warning($e, "length_is() on non-array element");
+ fatal($e, "length_is() on non-array element");
}
if (has_property($e, "string")) {
- warning($e, "string() attribute on non-array element");
+ fatal($e, "string() attribute on non-array element");
}
push (@$order, {
@@ -1142,7 +1142,7 @@ sub Validate($)
($x->{TYPE} eq "INTERFACE") &&
ValidInterface($x);
($x->{TYPE} eq "IMPORTLIB") &&
- warning($x, "importlib() not supported");
+ fatal($x, "importlib() not supported");
}
}