diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-02-17 23:38:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:48:28 -0500 |
commit | ec587914ed4df87b6aedab129fb59248b137f07b (patch) | |
tree | 0193c4debd18a0af2d83a1d293fc52b3a9c57896 /source4/pidl/lib/Parse | |
parent | 6cb2ce4275b727e220ab24bd22aa65f3f47e0557 (diff) | |
download | samba-ec587914ed4df87b6aedab129fb59248b137f07b.tar.gz samba-ec587914ed4df87b6aedab129fb59248b137f07b.tar.bz2 samba-ec587914ed4df87b6aedab129fb59248b137f07b.zip |
r21411: Add some simple tests for the wireshark NDR generator.
(This used to be commit 361977448210dfd889abca19b520cd259b9d0855)
Diffstat (limited to 'source4/pidl/lib/Parse')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm index 6bde87c47b..4a890fb630 100644 --- a/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm +++ b/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm @@ -16,6 +16,10 @@ Parse::Pidl::Wireshark::NDR - Parser generator for Wireshark package Parse::Pidl::Wireshark::NDR; +use Exporter; +@ISA = qw(Exporter); +@EXPORT_OK = qw(field2name @ett %res PrintIdl); + use strict; use Parse::Pidl qw(error warning); use Parse::Pidl::Typelist qw(getType); @@ -28,7 +32,7 @@ use File::Basename; use vars qw($VERSION); $VERSION = '0.01'; -my @ett; +our @ett; my %hf_used = (); my %return_types = (); @@ -66,7 +70,7 @@ sub field2name($) return $field; } -my %res = (); +our %res = (); my $tabs = ""; my $cur_fn = undef; sub pidl_fn_start($) @@ -108,7 +112,7 @@ sub deindent() sub PrintIdl($) { - my $idl = shift; + my ($idl) = @_; foreach (split /\n/, $idl) { pidl_code "/* IDL: $_ */"; |