diff options
| author | Christopher Li <sparse@chrisli.org> | 2010-06-17 17:08:09 -0700 |
|---|---|---|
| committer | Christopher Li <sparse@chrisli.org> | 2010-06-17 17:21:10 -0700 |
| commit | 49adf11b99cfce04ddcae7be0a272cc2df31436d (patch) | |
| tree | b2cf5af2e39f0162f555a943819875528834cfc1 /pre-process.c | |
| parent | 298c360ab0d1583585ea0fdefb9f9c96aefc64fe (diff) | |
| download | sparse-dev-49adf11b99cfce04ddcae7be0a272cc2df31436d.tar.gz | |
Parsing wide char string
A follow up change to parse the wide char string.
It currently only parse and store it like normal strings.
Need more change to reflect the base type and size etc.
Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'pre-process.c')
| -rw-r--r-- | pre-process.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pre-process.c b/pre-process.c index 058f24b3..656acaa6 100644 --- a/pre-process.c +++ b/pre-process.c @@ -864,10 +864,11 @@ static int token_different(struct token *t1, struct token *t2) different = t1->argnum != t2->argnum; break; case TOKEN_CHAR: - case TOKEN_LONG_CHAR: + case TOKEN_WIDE_CHAR: different = t1->character != t2->character; break; - case TOKEN_STRING: { + case TOKEN_STRING: + case TOKEN_WIDE_STRING: { struct string *s1, *s2; s1 = t1->string; |
