[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] recognize wide character constant and wide string literal
From: |
Hideki IWAMOTO |
Subject: |
[PATCH] recognize wide character constant and wide string literal |
Date: |
Sun, 16 Feb 2003 16:25:38 +0900 |
? libutil/.deps
? libutil/Makefile
? libutil/Makefile.in
Index: libutil/token.c
===================================================================
RCS file: /cvsroot/global/global/libutil/token.c,v
retrieving revision 1.5
diff -u -r1.5 token.c
--- libutil/token.c 5 Jul 2002 07:16:47 -0000 1.5
+++ libutil/token.c 16 Feb 2003 07:14:09 -0000
@@ -216,6 +216,10 @@
} else if (percent) {
percent = 0;
*p++ = '%';
+ } else if (c == 'L') {
+ int tmp = peekc(1);
+ if (tmp == '\"' || tmp == '\'')
+ continue;
}
for (*p++ = c; (c = nextchar()) != EOF && (c & 0x80 ||
isalnum(c) || c == '_'); *p++ = c)
;
----
Hideki IWAMOTO address@hidden
- [PATCH] recognize wide character constant and wide string literal,
Hideki IWAMOTO <=