From 14ac39f72d9363ed02f269e2f5db0f5c94aace9b Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 15 Oct 2019 00:50:44 +0200 Subject: [PATCH] :art: Remove useless gwion->base --- include/gwiondata.h | 1 - src/parse/scan0.c | 2 +- src/vm/vm.c | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) 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)) -- 2.43.0