From 563be66ccbd6473212314708cced9d134e2b5f8f Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sat, 3 Sep 2005 02:06:32 +0000 Subject: r9983: Make the NOEMIT conformance directive with no argument mean do not emit any dissectors for this IDL. (This used to be commit 55a98b3dfdef21df172dac6cff4ebc114b35df00) --- source4/pidl/lib/Parse/Pidl/Ethereal/Conformance.pm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'source4/pidl') diff --git a/source4/pidl/lib/Parse/Pidl/Ethereal/Conformance.pm b/source4/pidl/lib/Parse/Pidl/Ethereal/Conformance.pm index 45654fe6aa..8a4782073d 100644 --- a/source4/pidl/lib/Parse/Pidl/Ethereal/Conformance.pm +++ b/source4/pidl/lib/Parse/Pidl/Ethereal/Conformance.pm @@ -68,9 +68,16 @@ sub handle_strip_prefix($$) sub handle_noemit($$) { - my ($data,$type) = @_; + my ($data) = shift; + my $type; - $data->{noemit}->{$type} = 1; + $type = shift if ($#_ == 1); + + if (defined($type)) { + $data->{noemit}->{$type} = 1; + } else { + $data->{noemit_dissector} = 1; + } } sub handle_protocol($$$$$) -- cgit