diff options
author | Anders Magnusson <ragge@cvs.openbsd.org> | 2008-08-21 16:34:11 +0000 |
---|---|---|
committer | Anders Magnusson <ragge@cvs.openbsd.org> | 2008-08-21 16:34:11 +0000 |
commit | 235fb2b6a1e240884dc07b956bb8c4add9e6ec99 (patch) | |
tree | 7f19e63727979a27f4f98fba89cf8ccbb6aaab26 /usr.bin | |
parent | 8374e6619363e46e5bbaccc3bcaf5c02fb4064ff (diff) |
From master repo: Accept // inside #if directives.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/pcc/cpp/scanner.l | 6 |
1 files changed, 5 insertions, 1 deletions
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 = '/'; |