adapt to latest libfirm
[cparser] / symbol_t.h
index 1fe4054..77718e6 100644 (file)
@@ -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
 
 #include <stdbool.h>
 #include "symbol.h"
-#include "ast.h"
+#include "entity.h"
 #include "token_t.h"
 
-struct pp_definition_t {
-       symbol_t          *symbol;
-       source_position_t  source_position;
-       pp_definition_t   *parent_expansion;
-       size_t             expand_pos;
-       bool               is_variadic;
-       size_t             argument_count;
-       token_t           *arguments;
-       size_t             list_len;
-       token_t           *replacement_list;
-};
-
 struct symbol_t {
-       const char       *string;
-       unsigned short    ID;
-       unsigned short    pp_ID;
-       declaration_t    *declaration;
-       pp_definition_t  *pp_definition;
+       char const      *string;
+       unsigned short   ID;
+       pp_token_kind_t  pp_ID;
+       entity_t        *entity;
+       pp_definition_t *pp_definition;
 };
 
 #endif