diff --git a/stix/lib/comp.c b/stix/lib/comp.c index 5afc5f9..a41cdf9 100644 --- a/stix/lib/comp.c +++ b/stix/lib/comp.c @@ -1891,8 +1891,8 @@ static int compile_block_expression (stix_t* stix) GET_TOKEN (stix); } - /* TODO: create a block closure */ - if (compile_method_temporaries(stix) <= -1 || +/* TODO: create a block closure */ + if (compile_block_temporaries(stix) <= -1 || compile_block_statements(stix) <= -1) return -1; if (stix->c->tok.type != STIX_IOTOK_RBRACK) diff --git a/stix/lib/ignite.c b/stix/lib/ignite.c index 9a03baf..5a09c61 100644 --- a/stix/lib/ignite.c +++ b/stix/lib/ignite.c @@ -176,7 +176,7 @@ static int ignite_2 (stix_t* stix) stix->sysdic = (stix_oop_set_t)tmp; /* Export the system dictionary via the first class variable of the Stix class */ - ((stix_oop_class_t)stix->_stix)->vars[0] = (stix_oop_t)stix->sysdic; + ((stix_oop_class_t)stix->_stix)->slot[0] = (stix_oop_t)stix->sysdic; return 0; } diff --git a/stix/lib/stix.h b/stix/lib/stix.h index d67d6c9..e7cf0ac 100644 --- a/stix/lib/stix.h +++ b/stix/lib/stix.h @@ -523,7 +523,7 @@ struct stix_class_t stix_oop_set_t classmths; /* class methods, MethodDictionary */ /* indexed part afterwards */ - stix_oop_t vars[1]; /* class instance variables and class variables. */ + stix_oop_t slot[1]; /* class instance variables and class variables. */ }; typedef struct stix_class_t stix_class_t; typedef struct stix_class_t* stix_oop_class_t;