From 12e269c9381da19058f57b313f70066bc06030ac Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 24 Aug 2005 01:58:36 +0000 Subject: r9558: Add more whitespace to generated output. Change conformance file warning to something more understandable. Don't generate duplicate duplicate element dissectors for function call arguments. Hey this makes the winreg dissector compile, but not link. (This used to be commit 545d3deaa43ed2e837a7fb5e0cf5761281a9451f) --- source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/pidl') diff --git a/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm b/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm index c013d5670a..72ff819b68 100644 --- a/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm +++ b/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm @@ -176,7 +176,7 @@ sub Bitmap($$$) pidl_code "if(parent_tree) {"; indent; pidl_code "item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, $e->{ALIGN}, TRUE);"; - pidl_code "tree=proto_item_add_subtree(item,ett_$ifname\_$name);"; + pidl_code "tree = proto_item_add_subtree(item,ett_$ifname\_$name);"; deindent; pidl_code "}\n"; @@ -352,7 +352,7 @@ sub Function($$$) my %dissectornames; foreach (@{$fn->{ELEMENTS}}) { - $dissectornames{$_->{NAME}} = Element($_, $fn->{NAME}, $ifname) + $dissectornames{$_->{NAME}} = Element($_, $fn->{NAME}, $ifname) if not defined($dissectornames{$_->{NAME}}); } my $fn_name = $_->{NAME}; @@ -664,7 +664,7 @@ sub Initialize($) $conformance = {}; - ReadConformance($cnf_file, $conformance) or print "Warning: Not using conformance file `$cnf_file'\n"; + ReadConformance($cnf_file, $conformance) or print "Warning: No conformance file `$cnf_file'\n"; foreach my $bytes (qw(1 2 4 8)) { my $bits = $bytes * 8; -- cgit