summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2007-09-28 17:59:45 +0000
committerotto <otto@openbsd.org>2007-09-28 17:59:45 +0000
commite37813c38a9be9c89a32e643a62ac1d9e3b946a8 (patch)
treef2800dd18d9ed090f0ffa6741dca9029561898d1
parentunused file (diff)
downloadwireguard-openbsd-e37813c38a9be9c89a32e643a62ac1d9e3b946a8.tar.xz
wireguard-openbsd-e37813c38a9be9c89a32e643a62ac1d9e3b946a8.zip
back to start state when pragma is done; ok ragge@
-rw-r--r--usr.bin/pcc/cc/cpp/scanner.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pcc/cc/cpp/scanner.l b/usr.bin/pcc/cc/cpp/scanner.l
index f8c62193003..5bb0dc51365 100644
--- a/usr.bin/pcc/cc/cpp/scanner.l
+++ b/usr.bin/pcc/cc/cpp/scanner.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: scanner.l,v 1.7 2007/09/26 12:46:47 otto Exp $ */
+/* $OpenBSD: scanner.l,v 1.8 2007/09/28 17:59:45 otto Exp $ */
/*
* Copyright (c) 2004 Anders Magnusson. All rights reserved.
@@ -203,7 +203,7 @@ L?'(\\.|[^\\'])+' { if (YYSTATE)
<CONTR>"define" { contr = 0; BEGIN DEF; define(); BEGIN 0; }
<CONTR>"undef" { contr = 0; if (slow) return IDENT; undefstmt(); }
<CONTR>"line" { contr = 0; storepb(); BEGIN 0; line(); }
-<CONTR>"pragma" { contr = 0; pragmastmt(); }
+<CONTR>"pragma" { contr = 0; pragmastmt(); BEGIN 0; }
<CONTR>"elif" { contr = 0; storepb(); BEGIN IFR; elifstmt(); BEGIN 0; }