diff options
author | Teddy <[email protected]> | 2014-05-04 10:05:28 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-05-04 10:05:28 +0800 |
commit | 5f8c8cb8293ecdd76a9fda30a9a7fdf7b89232cd (patch) | |
tree | ad62094086f8e983c7b5547a998fc16857719cf0 /semantics.c | |
parent | ee16d16e23f53704722b111e8791be49000c2965 (diff) |
ready for register arg
Diffstat (limited to 'semantics.c')
-rw-r--r-- | semantics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/semantics.c b/semantics.c index 501d6eb..bbed137 100644 --- a/semantics.c +++ b/semantics.c @@ -270,7 +270,7 @@ CVar_t cvar_create(char *name, CType_t type, CNode *ast) { cv->ast = ast; cv->initr = NULL; cv->defsite = NULL; - cv->global = 0; + cv->loc = 0; cv->weight = 0; return cv; } @@ -1950,7 +1950,7 @@ void semantics_check(CNode *p) { CVList_t nv = NEW(CVList); nv->var = tp->rec.var; nv->next = gvars; - nv->var->global = 1; + nv->var->loc = 1; gvars = nv; } } |