autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ifnames comment patch


From: Jeremy Yallop
Subject: ifnames comment patch
Date: Fri, 4 Apr 2003 17:15:16 +0100
User-agent: Mutt/1.5.4i

ifnames doesn't understand C++-style comments:

  $ cat macro.c 
  #if 0 // foo bar
  #endif
  $ /usr/bin/ifnames macro.c 
  bar macro.c
  foo macro.c

Index: ifnames.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/ifnames.in,v
retrieving revision 1.28
diff -u -r1.28 ifnames.in
--- ifnames.in  28 Feb 2003 10:11:11 -0000      1.28
+++ ifnames.in  4 Apr 2003 16:15:45 -0000
@@ -107,6 +107,7 @@
          # Remove comments.  Not perfect, but close enough.
          s(/\*.*?\*/)();
          s(/\*.*)();
+         s(//.*)();
          foreach my $word (split (/\W+/))
            {
              next




reply via email to

[Prev in Thread] Current Thread [Next in Thread]