From 65cd2be7616ea238370b95a90fa44ce1ca5bf31e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 3 Mar 2021 02:11:25 +0100 Subject: [PATCH] :art: Few fixes --- src/arg.c | 2 +- src/lib/array.c | 1 + src/lib/modules.c | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/arg.c b/src/arg.c index c4504a27..4161e1d6 100644 --- a/src/arg.c +++ b/src/arg.c @@ -135,7 +135,7 @@ static void setup_options(cmdapp_t* app, cmdopt_t* opt) { ); cmdapp_set(app, '\0', "stdin", - CMDOPT_OPTIONAL, NULL, + 0, NULL, "read from stdin", &opt[STDIN] ); // sound options diff --git a/src/lib/array.c b/src/lib/array.c index b0d4172b..9670b012 100644 --- a/src/lib/array.c +++ b/src/lib/array.c @@ -161,6 +161,7 @@ static MFUN(vm_vector_insert_struct) { } static MFUN(vm_vector_size) { +printf("[%s] %p %p\n", __func__, o, ARRAY(o)); *(m_uint*)RETURN = ARRAY_LEN(ARRAY(o)); } diff --git a/src/lib/modules.c b/src/lib/modules.c index 9784c31c..38838b2d 100644 --- a/src/lib/modules.c +++ b/src/lib/modules.c @@ -259,7 +259,7 @@ static INSTR(UsrUGenTick) { uu->shred = new_vm_shred(shred->info->vm->gwion->mp, *(VM_Code*)(shred->reg-offset)); vmcode_addref(*(VM_Code*)(shred->reg - offset)); uu->shred->info->vm = shred->info->vm; - code_prepare(uu->shred->code); + code_prepare(vmcode_callback(shred->info->vm->gwion->mp, uu->shred->code)); shreduler_ini(uu->shred->info->vm->shreduler, uu->shred); uu->prep = instr->m_val ? member_prep : global_prep; *(M_Object*)(shred->reg - SZ_INT) = o; @@ -281,7 +281,7 @@ static GWION_IMPORT(usrugen) { GWI_BB(gwi_oper_ini(gwi, "@function", "UsrUGen", "UsrUGen")) GWI_BB(gwi_oper_add(gwi, opck_usrugen)) GWI_BB(gwi_oper_emi(gwi, opem_usrugen)) - GWI_BB(gwi_oper_end(gwi, "~=", NULL)) + GWI_BB(gwi_oper_end(gwi, "~=>", NULL)) return GW_OK; } -- 2.43.0