summaryrefslogtreecommitdiff
path: root/source4/build/pidl
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-07-27 19:08:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:43 -0500
commitcf507bf2aec62abfe9d69f096b8907f99edfd7f5 (patch)
tree9713c8beb647edc94abb668580395a8daeb00d4b /source4/build/pidl
parentc5cc59b1b37b105bdf588689e57b1a45e86d69c8 (diff)
downloadsamba-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)
Diffstat (limited to 'source4/build/pidl')
-rw-r--r--source4/build/pidl/eparser.pm12
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++;