aboutsummaryrefslogtreecommitdiff
path: root/semantics.h
diff options
context:
space:
mode:
Diffstat (limited to 'semantics.h')
-rw-r--r--semantics.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/semantics.h b/semantics.h
index 4db33b6..f1aa5a5 100644
--- a/semantics.h
+++ b/semantics.h
@@ -39,6 +39,7 @@ struct CVar {
int start;
CNode *ast;
CBList_t defsite;
+ int global;
/* the following fields are used for renaming */
int cnt;
COList_t stack;
@@ -74,8 +75,8 @@ struct CType {
CVar_t local;
CType_t ret;
CNode *body;
- int params_size;
int local_size;
+ int params_size;
} func; /* for a function */
} rec;
int size; /* memory footprint */