projects
/
capablanca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ec7b6bb
)
Fix build error in perl script
author
H.G. Muller
<h.g.muller@hccnet.nl>
Tue, 29 Nov 2011 18:18:38 +0000 (19:18 +0100)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Tue, 29 Nov 2011 18:18:38 +0000 (19:18 +0100)
lasker-2.2.3/src/parsers/genstruct.pl
patch
|
blob
|
history
diff --git
a/lasker-2.2.3/src/parsers/genstruct.pl
b/lasker-2.2.3/src/parsers/genstruct.pl
index
160ea1f
..
b86f51a
100755
(executable)
--- a/
lasker-2.2.3/src/parsers/genstruct.pl
+++ b/
lasker-2.2.3/src/parsers/genstruct.pl
@@
-178,7
+178,7
@@
sub parse_enum_elements($$)
print OFILE "static const struct enum_struct einfo_" . $name . "[] = {\n";
my(@enums) = split(/,/s, $elements);
- for (my($i)=0; $i <= $#{@enums}; $i++) {
+ for (my($i)=0; $i <= $#enums; $i++) {
my($enum) = $enums[$i];
if ($enum =~ /\s*(\w*)/) {
my($e) = $1;