X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=symbol.h;h=42ef1318ae763d0a048ba7aaecbea8c0a98b8c93;hb=516b4ed5ac675f2d94becf9fa0815ddc65f637ac;hp=88d0ed221a2e87631108367cbca71e90e2ef18da;hpb=fd16b92f058181088a385c3224c8814831c006d3;p=cparser diff --git a/symbol.h b/symbol.h index 88d0ed2..42ef131 100644 --- a/symbol.h +++ b/symbol.h @@ -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 @@ -20,15 +20,10 @@ #ifndef SYMBOL_H #define SYMBOL_H -#include "ast.h" +typedef struct symbol_t symbol_t; +typedef struct pp_definition_t pp_definition_t; -typedef struct symbol_t symbol_t; - -struct symbol_t { - const char *string; - unsigned short ID; - unsigned short pp_ID; - declaration_t *declaration; -}; +/** special symbol used for anonymous/error entities. */ +extern symbol_t *sym_anonymous; #endif