From master repo: Accept // inside #if directives.
authorragge <ragge@openbsd.org>
Thu, 21 Aug 2008 16:34:10 +0000 (16:34 +0000)
committerragge <ragge@openbsd.org>
Thu, 21 Aug 2008 16:34:10 +0000 (16:34 +0000)
usr.bin/pcc/cpp/scanner.l

index c2e94b4..47e83d8 100644 (file)
@@ -1,5 +1,5 @@
 %{
-/*     $OpenBSD: scanner.l,v 1.11 2008/08/18 20:54:10 ragge Exp $   */
+/*     $OpenBSD: scanner.l,v 1.12 2008/08/21 16:34:10 ragge Exp $   */
 
 /*
  * Copyright (c) 2004 Anders Magnusson. All rights reserved.
@@ -790,6 +790,10 @@ storepb(void)
                                getcmnt();
                                stringbuf = g;
                                continue;
+                       } else if (c == '/') {
+                               while ((c = input()) && c != '\n')
+                                       ;
+                               break;
                        }
                        unput(c);
                        c = '/';