Fix for RT #25366: h2xs 1.23 from "Aaron Kaplan".
Steve Peters [Tue, 2 May 2006 01:55:53 +0000 (01:55 +0000)]
p4raw-id: //depot/perl@28044

utils/h2xs.PL

index 7a21752..d62e96e 100644 (file)
@@ -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;