Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/flex/dist Rename the macro name so that the sca...
details: https://anonhg.NetBSD.org/src/rev/0cec9deae8a1
branches: trunk
changeset: 753708:0cec9deae8a1
user: christos <christos%NetBSD.org@localhost>
date: Wed Apr 07 16:14:07 2010 +0000
description:
Rename the macro name so that the scanner does not get confused and thinks
it is using REJECT.
diffstat:
external/bsd/flex/dist/scan.l | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 8b89bdb5fc16 -r 0cec9deae8a1 external/bsd/flex/dist/scan.l
--- a/external/bsd/flex/dist/scan.l Wed Apr 07 15:19:09 2010 +0000
+++ b/external/bsd/flex/dist/scan.l Wed Apr 07 16:14:07 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scan.l,v 1.2 2009/10/26 04:27:15 christos Exp $ */
+/* $NetBSD: scan.l,v 1.3 2010/04/07 16:14:07 christos Exp $ */
/* scan.l - scanner for flex input -*-C-*- */
@@ -83,9 +83,9 @@
for ( i = strlen( str ) - 1; i >= start; --i ) \
unput((str)[i])
-#define CHECK_REJECT(str) \
+#define CHECK_RE_JECT(str) \
if ( all_upper( str ) ) \
- reject = true;
+ reject = true
#define CHECK_YYMORE(str) \
if ( all_lower( str ) ) \
@@ -877,7 +877,7 @@
<CODEBLOCK,ACTION>{
"reject" {
ACTION_ECHO;
- CHECK_REJECT(yytext);
+ CHECK_RE_JECT(yytext);
}
"yymore" {
ACTION_ECHO;
Home |
Main Index |
Thread Index |
Old Index