aboutsummaryrefslogtreecommitdiff
path: root/semantics.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-04-27 04:32:02 +0800
committerTeddy <ted.sybil@gmail.com>2014-04-27 04:32:02 +0800
commit8c7c3602ac1fc2e1b382b442d3161a7151d2cec9 (patch)
tree6cc5ce659bcd4dd1a58c97445afe1c3e2833fed5 /semantics.c
parentfbafb96963beae48ca095839ffb17b82f9901e5f (diff)
...
Diffstat (limited to 'semantics.c')
-rw-r--r--semantics.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/semantics.c b/semantics.c
index 5a6419c..c29ae04 100644
--- a/semantics.c
+++ b/semantics.c
@@ -1174,8 +1174,8 @@ ExpType semantics_exp(CNode *p, CScope_t scope) {
POINTER_CONV(res.type, p);
p->ext.var = cvar_create(p->ext.type->name, res.type, NULL);
}
- p->ext.is_const = res.type->type == CARR ||
- res.type->type == CFUNC;
+ p->ext.is_const = 0; /* res.type->type == CARR ||
+ res.type->type == CFUNC; */
}
break;
case INT:
@@ -1197,7 +1197,7 @@ ExpType semantics_exp(CNode *p, CScope_t scope) {
res.type = type;
res.lval = 0;
p->ext.is_const = 1;
- p->ext.const_val = (long int)p->rec.strval;
+ /* TODO: to be filled with address */
}
break;
case EXP: