]> Nishi Git Mirror - gwion.git/commitdiff
:art: Few fixes
authorJérémie Astor <fennecdjay@gmail.com>
Wed, 3 Mar 2021 01:11:25 +0000 (02:11 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Wed, 3 Mar 2021 01:11:25 +0000 (02:11 +0100)
src/arg.c
src/lib/array.c
src/lib/modules.c

index c4504a277886890b4eb61a0c2c3d5479f5662743..4161e1d69dc0271ee7a949b1d7bb2a24770807bb 100644 (file)
--- 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
index b0d4172bd1f43079ec0d55061e9b19ca1e724472..9670b012fc0eda6692ac6f818fcee160a334e981 100644 (file)
@@ -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));
 }
 
index 9784c31cf6fa5ddf9f12688018acfb46a58b52a9..38838b2d51248213bb2526cebd03932831aee71d 100644 (file)
@@ -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;
 }