X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=token.c;h=3145d79df82fcd3afa3255fc41823f8eb0ba039e;hb=22d24ddd2209686fa723a62ccc19b7c2eea2d172;hp=94ac183ab9b06271b3c3cccf8af8cfd2e9f2d11d;hpb=1988fca13c6e497d97d646478600c87236b49a33;p=cparser diff --git a/token.c b/token.c index 94ac183..3145d79 100644 --- a/token.c +++ b/token.c @@ -1,6 +1,6 @@ /* * This file is part of cparser. - * Copyright (C) 2007-2008 Matthias Braun + * Copyright (C) 2007-2009 Matthias Braun * * 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) {