type: Make an assert()ion independent of the last entry of an enum.
[cparser] / symbol.h
index 895bfea..b6e507b 100644 (file)
--- a/symbol.h
+++ b/symbol.h
@@ -1,12 +1,14 @@
+/*
+ * This file is part of cparser.
+ * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
+ */
 #ifndef SYMBOL_H
 #define SYMBOL_H
 
-typedef struct symbol_t symbol_t;
+typedef struct symbol_t         symbol_t;
+typedef struct pp_definition_t  pp_definition_t;
 
-struct symbol_t {
-       const char          *string;
-       unsigned short       ID;
-       unsigned short       pp_ID;
-};
+/** special symbol used for anonymous/error entities. */
+extern symbol_t *sym_anonymous;
 
 #endif