From: Akim Demaille Date: Thu, 2 Oct 2003 12:47:47 +0000 (+0000) Subject: * bin/ifnames.in (&scan_file): Skip C++ comments. X-Git-Tag: AUTOCONF-2.57g~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c222091ff33e5baef6b6d772098e921175f61f7;p=thirdparty%2Fautoconf.git * bin/ifnames.in (&scan_file): Skip C++ comments. --- diff --git a/ChangeLog b/ChangeLog index 1033fd57..e23fcf40 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-10-02 Akim Demaille + + * bin/ifnames.in (&scan_file): Skip C++ comments. + From Jeremy Yallop. + 2003-10-01 Pavel Roskin * doc/autoconf.texi (Particular Structure Checks): diff --git a/bin/ifnames.in b/bin/ifnames.in index 5d6c6cee..5bc79bed 100644 --- a/bin/ifnames.in +++ b/bin/ifnames.in @@ -107,6 +107,7 @@ sub scan_file ($) # Remove comments. Not perfect, but close enough. s(/\*.*?\*/)(); s(/\*.*)(); + s(//.*)(); foreach my $word (split (/\W+/)) { next