diff options
author | Tim Potter <tpot@samba.org> | 2004-07-27 19:08:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:57:43 -0500 |
commit | cf507bf2aec62abfe9d69f096b8907f99edfd7f5 (patch) | |
tree | 9713c8beb647edc94abb668580395a8daeb00d4b | |
parent | c5cc59b1b37b105bdf588689e57b1a45e86d69c8 (diff) | |
download | samba-cf507bf2aec62abfe9d69f096b8907f99edfd7f5.tar.gz samba-cf507bf2aec62abfe9d69f096b8907f99edfd7f5.tar.bz2 samba-cf507bf2aec62abfe9d69f096b8907f99edfd7f5.zip |
r1595: Always use a loop variable named $e when iterating over lists of
elements.
(This used to be commit daf2aea67cbfa2cda1fb3da8862b152c66d9573f)
-rw-r--r-- | source4/build/pidl/eparser.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/build/pidl/eparser.pm b/source4/build/pidl/eparser.pm index 0c216c18b9..c175cdb41f 100644 --- a/source4/build/pidl/eparser.pm +++ b/source4/build/pidl/eparser.pm @@ -423,9 +423,9 @@ sub ParseStructPull($) pidl "\tguint32 _offset, _length;\n"; - for my $x (@{$struct->{ELEMENTS}}) { - if (util::is_builtin_type($x->{TYPE})) { - pidl "\tg$x->{TYPE} elt_$x->{NAME};\n"; + for my $e (@{$struct->{ELEMENTS}}) { + if (util::is_builtin_type($e->{TYPE})) { + pidl "\tg$e->{TYPE} elt_$e->{NAME};\n"; } } @@ -574,12 +574,12 @@ sub ParseEnumPull($) my $name; my $ndx = 0; - for my $x (@{$e->{ELEMENTS}}) { - if ($x =~ /([a-zA-Z_]+)=([0-9]+)/) { + for my $e (@{$e->{ELEMENTS}}) { + if ($e =~ /([a-zA-Z_]+)=([0-9]+)/) { $name = $1; $ndx = $2; } else { - $name = $x; + $name = $e; } pidl "#define $name $ndx\n"; $ndx++; |