Fix for RT #25366: h2xs 1.23 from "Aaron Kaplan".
authorSteve Peters <steve@fisharerojo.org>
Tue, 2 May 2006 01:55:53 +0000 (01:55 +0000)
committerSteve Peters <steve@fisharerojo.org>
Tue, 2 May 2006 01:55:53 +0000 (01:55 +0000)
p4raw-id: //depot/perl@28044

utils/h2xs.PL

index 7a2175223bb72b8b659532892bff436a8c7af5fe..d62e96ec854903489b72e9aebc2f7a542ccac8b2 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;