X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=entity_t.h;h=c0142ea078c7a406cf68b041071d0ef4750a661c;hb=3c84e06d01aaed7971067d7cc1924f6e20bcd0ba;hp=5003cbc963db4ce80a8af6fa8aca42fbbbf0041a;hpb=d376b308bd6906aaec5aef172629562664d442f3;p=cparser diff --git a/entity_t.h b/entity_t.h index 5003cbc..c0142ea 100644 --- a/entity_t.h +++ b/entity_t.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 @@ -33,6 +33,7 @@ typedef enum { ENTITY_PARAMETER, ENTITY_FUNCTION, ENTITY_TYPEDEF, + ENTITY_CLASS, ENTITY_STRUCT, ENTITY_UNION, ENTITY_ENUM, @@ -97,9 +98,9 @@ typedef enum decl_modifier_t { */ struct scope_t { entity_t *entities; - entity_t *last_entity; - unsigned depth; /**< while parsing, the depth of this scope in the - scope stack. */ + entity_t *last_entity; /**< pointer to last entity (so appending is fast) */ + unsigned depth; /**< while parsing, the depth of this scope in the + scope stack. */ }; /**