From: Jérémie Astor Date: Fri, 6 Dec 2019 16:11:37 +0000 (+0100) Subject: :art: Update headers X-Git-Tag: nightly~2069^2~1 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=c28c236b8468f9d164db786af00f8d79588e20b2;p=gwion.git :art: Update headers --- diff --git a/include/gwion.h b/include/gwion.h index d35b4498..6ddba52e 100644 --- a/include/gwion.h +++ b/include/gwion.h @@ -23,4 +23,5 @@ ANN VM* gwion_cpy(const VM*); ANN void gwion_run(const Gwion gwion); ANN void gwion_end(const Gwion gwion); void free_code_instr(const Vector v, const Gwion gwion); +ANN void gwion_end_child(const VM_Shred shred, const Gwion gwion); #endif diff --git a/src/gwion.c b/src/gwion.c index b59b1634..ccf79a88 100644 --- a/src/gwion.c +++ b/src/gwion.c @@ -102,8 +102,6 @@ ANN void gwion_run(const Gwion gwion) { vm->bbq->driver->run(vm, vm->bbq); } -ANN void gwion_end_child(const VM_Shred shred, const Gwion gwion); - ANN static inline void free_gwion_cpy(const Gwion gwion, const VM_Shred shred) { gwion_end_child(shred, gwion); free_vm(gwion->vm); diff --git a/src/lib/shred.c b/src/lib/shred.c index f6d2ca0b..71dc6892 100644 --- a/src/lib/shred.c +++ b/src/lib/shred.c @@ -169,7 +169,7 @@ static DTOR(fork_dtor) { vector_init(&vm->gwion->data->child2); vector_add(&vm->gwion->data->child2, (vtype)ME(o)->info->vm->gwion); } - gwion_end_child(ME(o)->info->vm->gwion, shred); + gwion_end_child(shred, ME(o)->info->vm->gwion); join(o); }