From eb4075fed7d94bd1937133e5349b8279906e3a9d Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 3 Jun 2008 09:39:16 +0000 Subject: [PATCH] Conforming with the new Code API --- src/scanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.c b/src/scanner.c index 199b1c6..b126f1f 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -88,7 +88,7 @@ int scan(C99 * c99) } c = string[0]; if(isalpha(c) || c == '_') - token_set_code(c99->token, code_is_type(c99->code, string) + token_set_code(c99->token, code_type_get(c99->code, string) >= 0 ? C99_CODE_TYPEDEF_NAME : C99_CODE_IDENTIFIER); else if(isdigit(c)) /* FIXME make a stricter check? */ token_set_code(c99->token, C99_CODE_CONSTANT);