1 ###################################################
2 # IDL Compatibility checker
3 # Copyright jelmer@samba.org 2005
4 # released under the GNU GPL
6 package Parse::Pidl::Compat;
17 print "$l->{FILE}:$l->{LINE}:$m\n";
23 if (util::has_property($if, "pointer_default_top")) {
24 warning($if, "pointer_default_top() is pidl-specific");
27 foreach my $x (@{$if->{DATA}}) {
28 if ($x->{TYPE} eq "DECLARE") {
29 warning($if, "the declare keyword is pidl-specific");
33 if ($x->{TYPE} eq "TYPEDEF") {
34 if ($x->{DATA}->{TYPE} eq "UNION") {
35 if (util::has_property($x, "nodiscriminant")) {
36 warning($x, "nodiscriminant property is pidl-specific");
48 foreach my $x (@{$pidl}) {
49 CheckInterface($x) if ($x->{TYPE} eq "INTERFACE");