]> www.infradead.org Git - users/dhowells/kafs-utils.git/commitdiff
rxgen: Make lists of constants, structs and funcs global
authorDavid Howells <dhowells@redhat.com>
Thu, 9 Jan 2014 14:49:29 +0000 (14:49 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 9 Jan 2014 14:49:29 +0000 (14:49 +0000)
Make lists of constants, structs and funcs global within the rxgen perl script
and any modules it uses.

Signed-off-by: David Howells <dhowells@redhat.com>
rxgen/rxgen.pl

index 5106a0bcf63f16ee8d038b7e205ef3291731aa28..a377e248e3530ca01db02f02501be7ade2062f36 100755 (executable)
@@ -23,10 +23,10 @@ sub emit_py_func_simple_sync_call($$$@);
 
 die "Need list of sources\n" if ($#ARGV < 0);
 
-my @structs = ();      # Structure definitions
-my %struct_sizes = (); # Structure sizes
-my %funcs = ();                # Function declarations
-my %constants = ();    # #defined constants
+our @structs = ();     # Structure definitions
+our %struct_sizes = ();        # Structure sizes
+our %funcs = ();       # Function declarations
+our %constants = ();   # #defined constants
 
 #
 # Divide the lines from the files up into typed collections