diff options
| author | Linus Torvalds <torvalds@penguin.transmeta.com> | 2003-03-14 17:08:12 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 20:59:16 -0700 |
| commit | 2d76ef523eb4606a60b7e95fd67b4c6d302a2b16 (patch) | |
| tree | 071211260972d1010dad6e64446b224dea96922c /tokenize.c | |
| parent | ffa4ddda950185bf313654e903207a3fc2d5f261 (diff) | |
| download | sparse-dev-2d76ef523eb4606a60b7e95fd67b4c6d302a2b16.tar.gz | |
Add more type parsing: function and array declarators, function
parameter lists etc. It can now parse things like
const volatile int hello(const int (*argc)(void), const char *const* argv);
apparently correctly.
Diffstat (limited to 'tokenize.c')
| -rw-r--r-- | tokenize.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -38,6 +38,8 @@ const char *show_token(const struct token *token) { static char buffer[256]; + if (!token) + return "<no token>"; switch (token->type) { case TOKEN_ERROR: return "syntax error"; |
