#ifndef __IMPORT_CLASS
#define __IMPORT_CLASS
ANN2(1,2) Type gwi_class_ini(const Gwi gwi, const m_str, const m_str parent);
-ANN2(1,2) Type gwi_struct_ini(const Gwi gwi, const m_str, const m_uint size);
+ANN2(1,2) Type gwi_struct_ini(const Gwi gwi, const m_str);
ANN2(1) void gwi_class_xtor(const Gwi gwi, const f_xtor ctor, const f_xtor dtor);
ANN m_int gwi_class_end(const Gwi gwi);
ANN void inherit(const Type);
return type_finish(gwi, t);
}
-ANN Type gwi_struct_ini(const Gwi gwi, const m_str name, const m_uint size) {
+ANN Type gwi_struct_ini(const Gwi gwi, const m_str name) {
CHECK_OO(str2sym(gwi, name))
const Type t = new_type(gwi->gwion->mp, ++gwi->gwion->env->scope->type_xid, name, NULL);
- t->size = size;
+ t->e->tuple = new_tupleform(gwi->gwion->mp, NULL);
gwi_type_flag(t);
SET_FLAG(t, struct);
return type_finish(gwi, t);