renamed vars to slot in stix_class_t
This commit is contained in:
parent
dab7285c45
commit
3added1316
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user