From: fennecdjay Date: Mon, 14 Oct 2019 22:50:44 +0000 (+0200) Subject: :art: Remove useless gwion->base X-Git-Tag: nightly~2145 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=14ac39f72d9363ed02f269e2f5db0f5c94aace9b;p=gwion.git :art: Remove useless gwion->base --- diff --git a/include/gwiondata.h b/include/gwiondata.h index 742e1c99..c21a27ac 100644 --- a/include/gwiondata.h +++ b/include/gwiondata.h @@ -8,7 +8,6 @@ typedef struct GwionData_ { struct Vector_ reserved; struct Map_ pass_map; struct Vector_ pass; - struct Gwion_ *base; } GwionData; ANN GwionData* new_gwiondata(MemPool); diff --git a/src/parse/scan0.c b/src/parse/scan0.c index a6b97d26..52f65fb9 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -254,7 +254,7 @@ ANN m_bool scan0_union_def(const Env env, const Union_Def udef) { nspc_add_value(nspc, udef->xid, udef->value); add_type(env, nspc, t); SET_FLAG(t, scan1 | ae_flag_union); - SET_FLAG(udef->value, checked | udef->flag); + SET_FLAG(udef->value, checked | udef->flag | ae_flag_pure); if(env->class_def && !GET_FLAG(udef, static)) { SET_FLAG(udef->value, member); SET_FLAG(udef, member); diff --git a/src/vm/vm.c b/src/vm/vm.c index b41fbc93..5de6ce2b 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -82,7 +82,6 @@ ANN void vm_fork(const VM* src, const VM_Shred shred) { VM* vm = (shred->info->vm = gwion_cpy(src)); shred->info->me = new_shred(shred, 0); shreduler_add(vm->shreduler, shred); - vm->gwion->data->base = src->gwion; } __attribute__((hot))