From: Jérémie Astor Date: Wed, 3 Mar 2021 01:11:25 +0000 (+0100) Subject: :art: Few fixes X-Git-Tag: nightly~897 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=65cd2be7616ea238370b95a90fa44ce1ca5bf31e;p=gwion.git :art: Few fixes --- 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; }