aboutsummaryrefslogtreecommitdiff
path: root/semantics.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-04-11 09:45:17 +0800
committerTeddy <ted.sybil@gmail.com>2014-04-11 09:45:17 +0800
commit8b7a07ec7fe1449b83112feae26566167600d056 (patch)
tree7e41fe0e0e3bebb173817ede339555ab36b5c012 /semantics.h
parentb1263939ee71fea26a2c980829c33a2556a0d65a (diff)
fixed bug of cast
Diffstat (limited to 'semantics.h')
-rw-r--r--semantics.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/semantics.h b/semantics.h
index fbbcf02..d781737 100644
--- a/semantics.h
+++ b/semantics.h
@@ -14,6 +14,7 @@ struct CVar {
CVar_t next; /* next in the linked list */
CType_t type;
int offset;
+ int is_const;
CNode *ast;
};
@@ -119,6 +120,7 @@ struct CScope {
typedef struct ExpType {
CType_t type;
int lval;
+ int is_var;
} ExpType;
CScope_t cscope_create();