From c28c236b8468f9d164db786af00f8d79588e20b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 6 Dec 2019 17:11:37 +0100 Subject: [PATCH] :art: Update headers --- include/gwion.h | 1 + src/gwion.c | 2 -- src/lib/shred.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) 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); } -- 2.43.0