- icc 11 defines __ptr32
[cparser] / token.c
diff --git a/token.c b/token.c
index 94ac183..3145d79 100644 (file)
--- a/token.c
+++ b/token.c
@@ -1,6 +1,6 @@
 /*
  * This file is part of cparser.
- * Copyright (C) 2007-2008 Matthias Braun <matze@braunis.de>
+ * Copyright (C) 2007-2009 Matthias Braun <matze@braunis.de>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -119,6 +119,11 @@ void print_token_type(FILE *f, token_type_t token_type)
        }
 }
 
+symbol_t *get_token_symbol(const token_t *token)
+{
+       return token_symbols[token->type];
+}
+
 void print_token(FILE *f, const token_t *token)
 {
        switch(token->type) {