Package: perl Version: 5.8.7-3 Severity: normal Tags: patch h2xs ignores enums which contain C++ style comments and negative numbers.
enum { A = -1, // negative one B = -2 // negative two }; This patch fixes the problem: --- h2xs.orig 2005-07-28 13:32:13.000000000 +1000 +++ h2xs 2005-07-28 13:32:34.000000000 +1000 @@ -860,8 +860,9 @@ # Remove C and C++ comments $src =~ s#/\*[^*]*\*+([^/*][^*]*\*+)*/|("(\\.|[^"\\])*"|'(\\.|[^'\\])*'|.[^/"'\\]*)#$2#gs; + $src =~ s#//.*\n#\n#g; - while ($src =~ /(\benum\s*([\w_]*)\s*\{\s([\s\w=,]+)\})/gsc) { + while ($src =~ /(\benum\s*([\w_]*)\s*\{\s([\s\w=,-]+)\})/gsc) { my ($enum_name, $enum_body) = $1 =~ /enum\s*([\w_]*)\s*\{\s([\s\w=,]+)\}/gs; # skip enums matching $opt_e ---end patch -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.11.7 Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1) Versions of packages perl depends on: ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libdb4.2 4.2.52-18 Berkeley v4.2 Database Libraries [ ii libgdbm3 1.8.3-2 GNU dbm database routines (runtime ii perl-base 5.8.7-3 The Pathologically Eclectic Rubbis ii perl-modules 5.8.7-3 Core Perl modules -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]