diff options
author | Teddy <ted.sybil@gmail.com> | 2014-04-04 05:44:00 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2014-04-04 05:44:00 +0800 |
commit | bf77f3bad51ef61f660514b6f72bcd8b68f25154 (patch) | |
tree | 702388b37e581f3138dbcbe8ba4da36c4623e279 /semantics.h | |
parent | a05cc73c7519d7802c222921bf3b3c5b045b17f1 (diff) |
fix the `->next` issue
Diffstat (limited to 'semantics.h')
-rw-r--r-- | semantics.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/semantics.h b/semantics.h index 11e4e54..46f9a41 100644 --- a/semantics.h +++ b/semantics.h @@ -82,9 +82,19 @@ int ctable_insert(CTable_t ct, const char *key, void *val, int lvl); void ctable_clip(CTable_t ct, const char *key, int max_lvl); void ctable_debug_print(CTable_t ct); +typedef struct CSVar { + struct CVar *var; + struct CSVar *next; +} CSVar; + +typedef struct CSType { + struct CType *type; + struct CSType *next; +} CSType; + typedef struct CSNode { - struct CVar *vhead; - struct CType *thead; + struct CSVar *vhead; + struct CSType *thead; struct CSNode *next; } CSNode; |