From: David Howells Date: Thu, 9 Jan 2014 14:49:29 +0000 (+0000) Subject: rxgen: Make lists of constants, structs and funcs global X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=211e0d4ff9625a259cd92d641db2cca07ae8bcee;p=users%2Fdhowells%2Fkafs-utils.git rxgen: Make lists of constants, structs and funcs global Make lists of constants, structs and funcs global within the rxgen perl script and any modules it uses. Signed-off-by: David Howells --- diff --git a/rxgen/rxgen.pl b/rxgen/rxgen.pl index 5106a0b..a377e24 100755 --- a/rxgen/rxgen.pl +++ b/rxgen/rxgen.pl @@ -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