summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse/Pidl/NDR.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-24 14:13:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:09 -0500
commit8973ac8a393f9df64ea37de79397161815e1ce2c (patch)
tree119d25f3ea3516cdad9dd9c91538964fdd81ac3b /source4/pidl/lib/Parse/Pidl/NDR.pm
parent5d9ea9170d2e0fd816285bd460de05f800ce26e8 (diff)
downloadsamba-8973ac8a393f9df64ea37de79397161815e1ce2c.tar.gz
samba-8973ac8a393f9df64ea37de79397161815e1ce2c.tar.bz2
samba-8973ac8a393f9df64ea37de79397161815e1ce2c.zip
r14691: Fix printing elements with represent_as set
(This used to be commit f4428db2f922e921c54cdb0849eaad5018cb5a01)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/NDR.pm')
-rw-r--r--source4/pidl/lib/Parse/Pidl/NDR.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/NDR.pm b/source4/pidl/lib/Parse/Pidl/NDR.pm
index 1d5059bfb5..c8a9717889 100644
--- a/source4/pidl/lib/Parse/Pidl/NDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/NDR.pm
@@ -917,6 +917,10 @@ sub ValidElement($)
fatal($e, el_name($e) . " : represent_as() and transmit_as() can not be used on the same element");
}
+ if (has_property($e, "represent_as") and has_property($e, "value")) {
+ fatal($e, el_name($e) . " : represent_as() and value() can not be used on the same element");
+ }
+
if (defined (has_property($e, "subcontext_size")) and not defined(has_property($e, "subcontext"))) {
fatal($e, el_name($e) . " : subcontext_size() on non-subcontext element");
}