artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f254eb1
)
From master repo: Accept // inside #if directives.
author
ragge
<ragge@openbsd.org>
Thu, 21 Aug 2008 16:34:10 +0000
(16:34 +0000)
committer
ragge
<ragge@openbsd.org>
Thu, 21 Aug 2008 16:34:10 +0000
(16:34 +0000)
usr.bin/pcc/cpp/scanner.l
patch
|
blob
|
history
diff --git
a/usr.bin/pcc/cpp/scanner.l
b/usr.bin/pcc/cpp/scanner.l
index
c2e94b4
..
47e83d8
100644
(file)
--- a/
usr.bin/pcc/cpp/scanner.l
+++ b/
usr.bin/pcc/cpp/scanner.l
@@
-1,5
+1,5
@@
%{
-/* $OpenBSD: scanner.l,v 1.1
1 2008/08/18 20:5
4:10 ragge Exp $ */
+/* $OpenBSD: scanner.l,v 1.1
2 2008/08/21 16:3
4: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 = '/';