summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse/Pidl/NDR.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/NDR.pm')
-rw-r--r--source4/pidl/lib/Parse/Pidl/NDR.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/NDR.pm b/source4/pidl/lib/Parse/Pidl/NDR.pm
index 6a3698a920..86bd62044b 100644
--- a/source4/pidl/lib/Parse/Pidl/NDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/NDR.pm
@@ -661,6 +661,7 @@ sub Parse($)
foreach (@{$idl}) {
($_->{TYPE} eq "INTERFACE") && push(@ndr, ParseInterface($_));
+ ($_->{TYPE} eq "IMPORT") && push(@ndr, $_);
}
return \@ndr;
@@ -1044,6 +1045,14 @@ sub ValidInterface($)
my($interface) = shift;
my($data) = $interface->{DATA};
+ if (has_property($interface, "depends")) {
+ nonfatal $interface, "depends() is pidl-specific and deprecated. Use `import' instead";
+ }
+
+ if (has_property($interface, "helper")) {
+ nonfatal $interface, "helper() is pidl-specific and deprecated. Use `include' instead";
+ }
+
ValidProperties($interface,"INTERFACE");
if (has_property($interface, "pointer_default") &&
@@ -1081,6 +1090,8 @@ sub Validate($)
foreach my $x (@{$idl}) {
($x->{TYPE} eq "INTERFACE") &&
ValidInterface($x);
+ ($x->{TYPE} eq "IMPORTLIB") &&
+ nonfatal($x, "importlib() not supported");
}
}