projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e901479
)
Fix for RT #25366: h2xs 1.23 from "Aaron Kaplan".
author
Steve Peters
<steve@fisharerojo.org>
Tue, 2 May 2006 01:55:53 +0000
(
01:55
+0000)
committer
Steve Peters
<steve@fisharerojo.org>
Tue, 2 May 2006 01:55:53 +0000
(
01:55
+0000)
p4raw-id: //depot/perl@28044
utils/h2xs.PL
patch
|
blob
|
history
diff --git
a/utils/h2xs.PL
b/utils/h2xs.PL
index 7a2175223bb72b8b659532892bff436a8c7af5fe..d62e96ec854903489b72e9aebc2f7a542ccac8b2 100644
(file)
--- a/
utils/h2xs.PL
+++ b/
utils/h2xs.PL
@@
-904,6
+904,7
@@
if( @path_h ){
next if $opt_e && $enum_name =~ /$opt_e/;
my $val = 0;
for my $item (split /,/, $enum_body) {
+ next if $item =~ /\A\s*\Z/;
my ($key, $declared_val) = $item =~ /(\w+)\s*(?:=\s*(.*))?/;
$val = defined($declared_val) && length($declared_val) ? $declared_val : 1 + $val;
$seen_define{$key} = $val;