From: ragge Date: Thu, 21 Aug 2008 16:34:10 +0000 (+0000) Subject: From master repo: Accept // inside #if directives. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bd7708a5459bef38fb2e2fca4e409745c055a694;p=openbsd From master repo: Accept // inside #if directives. --- diff --git a/usr.bin/pcc/cpp/scanner.l b/usr.bin/pcc/cpp/scanner.l index c2e94b4d5b1..47e83d82760 100644 --- a/usr.bin/pcc/cpp/scanner.l +++ b/usr.bin/pcc/cpp/scanner.l @@ -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 = '/';