-Subproject commit 126cdeb142c8764f331c530ad0cf15494d129c73
+Subproject commit 058ef7b425c5122290f3b5d49939f5ba1f40dd21
#define __IMPORT_ITEM
ANN m_int gwi_item_ini(const Gwi gwi, const m_str type, const m_str name);
-ANN2(1) m_int gwi_item_end(const Gwi gwi, const ae_flag flag, const m_uint* addr);
-#define gwi_item_end(a, b, c) gwi_item_end(a, (const ae_flag)(b), (const m_uint*)c)
+ANN2(1) m_int gwi_item_end(const Gwi gwi, const ae_flag flag, m_uint *const addr);
+#define gwi_item_end(a, b, c) gwi_item_end(a, (const ae_flag)(b), (m_uint*const)c)
ANN void ck_clean_item(MemPool, ImportCK*);
#endif
}
#undef gwi_item_end
-ANN2(1) m_int gwi_item_end(const Gwi gwi, const ae_flag flag, const m_uint* addr) {
+ANN2(1) m_int gwi_item_end(const Gwi gwi, const ae_flag flag, m_uint *const addr) {
CHECK_BB(ck_ok(gwi, ck_item))
const Env env = gwi->gwion->env;
- gwi->ck->exp->d.exp_decl.list->self->addr = (m_uint*)addr;
gwi->ck->exp->d.exp_decl.td->flag = flag;
if(env->class_def && tflag(env->class_def, tflag_tmpl))
return gwi_item_tmpl(gwi);
CHECK_BB(traverse_exp(env, gwi->ck->exp))
const Value value = gwi->ck->exp->d.exp_decl.list->self->value;
+ value->d.ptr = addr;
set_vflag(value, vflag_builtin);
if(!env->class_def)
SET_FLAG(value, global);
tuple_contains(env, v);
} else if(!env->scope->depth)
set_vflag(v, vflag_fglobal);// file global
- v->d.ptr = var->addr;
if(GET_FLAG(decl->td, global))
SET_FLAG(v, global);
if(!env->scope->depth)