summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse/Pidl/Samba4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-08-31 00:03:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:03:14 -0500
commit7acc0e77a6f6d74d1ccfcf04424a63b224b292a5 (patch)
treee1c8428f645a659ea14105eb4159ad4e1ddac47d /source4/pidl/lib/Parse/Pidl/Samba4
parent82037a75eae9deaf6ec80b5ecc3bb89aab6e6dd8 (diff)
downloadsamba-7acc0e77a6f6d74d1ccfcf04424a63b224b292a5.tar.gz
samba-7acc0e77a6f6d74d1ccfcf04424a63b224b292a5.tar.bz2
samba-7acc0e77a6f6d74d1ccfcf04424a63b224b292a5.zip
r24815: Support cpp_quote().
(This used to be commit 30c1de30bb4ded16e79316c0ab43809e0e19f75d)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Samba4')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba4/Header.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm b/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm
index 31145e9fb3..40fb1d3579 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm
@@ -371,6 +371,13 @@ sub HeaderInterface($)
pidl "#endif /* _HEADER_$interface->{NAME} */\n";
}
+sub HeaderQuote($)
+{
+ my($quote) = shift;
+
+ pidl $quote->{DATA};
+}
+
#####################################################################
# parse a parsed IDL into a C header
sub Parse($)
@@ -388,6 +395,7 @@ sub Parse($)
pidl "\n";
foreach (@{$ndr}) {
+ ($_->{TYPE} eq "CPP_QUOTE") && HeaderQuote($_);
($_->{TYPE} eq "INTERFACE") && HeaderInterface($_);
($_->{TYPE} eq "IMPORT") && HeaderImport(@{$_->{PATHS}});
($_->{TYPE} eq "INCLUDE") && HeaderInclude(@{$_->{PATHS}});