From cf507bf2aec62abfe9d69f096b8907f99edfd7f5 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 27 Jul 2004 19:08:34 +0000 Subject: r1595: Always use a loop variable named $e when iterating over lists of elements. (This used to be commit daf2aea67cbfa2cda1fb3da8862b152c66d9573f) --- source4/build/pidl/eparser.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/build') 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++; -- cgit