diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/h2xs.PL | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/h2xs.PL b/utils/h2xs.PL index ee4079f8ea..6b2c78f092 100644 --- a/utils/h2xs.PL +++ b/utils/h2xs.PL @@ -862,6 +862,10 @@ if( @path_h ){ $rest =~ s!/\*.*?(\*/|\n)|//.*!!g; # Remove comments $rest =~ s/^\s+//; $rest =~ s/\s+$//; + if ($rest eq '') { + print("Skip empty $def\n") if $opt_d; + next defines; + } # Cannot do: (-1) and ((LHANDLE)3) are OK: #print("Skip non-wordy $def => $rest\n"), # next defines if $rest =~ /[^\w\$]/; |