diff options
author | Teddy <ted.sybil@gmail.com> | 2014-04-05 01:31:16 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2014-04-05 01:31:16 +0800 |
commit | f1dd8fcb1792d62fdf132657b21c15b093fa01f5 (patch) | |
tree | 612a3c4c659c6dca49a7e8d05045a30e99317573 /semantics.h | |
parent | dcab32187ccd3d7e31e2e01e4c1b313fdad52f99 (diff) |
check for invalid `void` type
Diffstat (limited to 'semantics.h')
-rw-r--r-- | semantics.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/semantics.h b/semantics.h index b770156..9136ebb 100644 --- a/semantics.h +++ b/semantics.h @@ -109,6 +109,11 @@ typedef struct CScope { struct CTable *ttype; } CScope; +typedef struct ExpType { + CType *type; + int lval; +} ExpType; + CScope_t cscope_create(); CVar *cscope_lookup_var(CScope_t cs, const char *name); CType *cscope_lookup_type(CScope_t cs, const char *name); |