projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed some warnings
[cparser]
/
token.c
diff --git
a/token.c
b/token.c
index
f9b5336
..
99c871c
100644
(file)
--- a/
token.c
+++ b/
token.c
@@
-81,17
+81,17
@@
void print_token(FILE *f, const token_t *token)
case T_IDENTIFIER:
fprintf(f, "symbol '%s'", token->v.symbol->string);
break;
case T_IDENTIFIER:
fprintf(f, "symbol '%s'", token->v.symbol->string);
break;
- case T_TYPENAME:
- fprintf(f, "typename '%s'", token->v.symbol->string);
- break;
case T_INTEGER:
case T_INTEGER:
- fprintf(f, "integer number %d", token->v.intvalue);
+ fprintf(f, "integer number %lld", token->v.intvalue);
+ break;
+ case T_FLOATINGPOINT:
+ fprintf(f, "floatingpointer number %LF", token->v.floatvalue);
break;
case T_STRING_LITERAL:
fprintf(f, "string '%s'", token->v.string);
break;
default:
break;
case T_STRING_LITERAL:
fprintf(f, "string '%s'", token->v.string);
break;
default:
- print_token_type(f, token->type);
+ print_token_type(f,
(token_type_t)
token->type);
break;
}
}
break;
}
}