summaryrefslogtreecommitdiff
path: root/source4/build/pidl/validator.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-02-12 21:43:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:46 -0500
commit51a6f7b227e131a7610b56cbf54d9128f35c7d66 (patch)
treee9b42123d342844bb5af822aa950019eab599f1b /source4/build/pidl/validator.pm
parent67bc7ddbe9d42507f276381796f0be1ff01111d4 (diff)
downloadsamba-51a6f7b227e131a7610b56cbf54d9128f35c7d66.tar.gz
samba-51a6f7b227e131a7610b56cbf54d9128f35c7d66.tar.bz2
samba-51a6f7b227e131a7610b56cbf54d9128f35c7d66.zip
r5361: Rename some functions, add tests to validator.
(This used to be commit c9d7b88756039a3eb3024c886851e489c46ef67f)
Diffstat (limited to 'source4/build/pidl/validator.pm')
-rw-r--r--source4/build/pidl/validator.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/build/pidl/validator.pm b/source4/build/pidl/validator.pm
index 818611ea46..d496a02309 100644
--- a/source4/build/pidl/validator.pm
+++ b/source4/build/pidl/validator.pm
@@ -47,6 +47,17 @@ sub ValidElement($)
if ($e->{POINTERS} && $e->{ARRAY_LEN}) {
fatal(el_name($e) . " : pidl cannot handle pointers to arrays. Use a substructure instead\n");
}
+
+ if (util::has_property($e, "ptr")) {
+ fatal(el_name($e) . " : pidl does not support full NDR pointers yet\n");
+ }
+
+ if (!$e->{POINTERS} && (
+ util::has_property($e, "ptr") or
+ util::has_property($e, "unique") or
+ util::has_property($e, "ref"))) {
+ fatal(el_name($e) . " : pointer properties on non-pointer element\n");
+ }
}
#####################################################################