]> Nishi Git Mirror - gwion.git/commitdiff
:art: Few fixes
authorJérémie Astor <fennecdjay@gmail.com>
Sun, 14 Nov 2021 18:40:25 +0000 (19:40 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Sun, 14 Nov 2021 18:40:25 +0000 (19:40 +0100)
libcmdapp
src/gwion.c
src/lib/dict.c

index 84f5a69293c50e66f9edb584a71e6526c8b66646..4c97e4ed96a958d75c2657f8744c7e86e8a66a30 160000 (submodule)
--- a/libcmdapp
+++ b/libcmdapp
@@ -1 +1 @@
-Subproject commit 84f5a69293c50e66f9edb584a71e6526c8b66646
+Subproject commit 4c97e4ed96a958d75c2657f8744c7e86e8a66a30
index bd9f4f138e95e7394f0ffdda8bb3ba6e400b38e4..5f5d9bafb7da4873afb3bf1188f4c54631296629 100644 (file)
@@ -82,6 +82,7 @@ ANN static void doc_mode(const Gwion gwion) {
   vector_init(&v);
   vector_add(&v, (m_uint) "scan0");
   pass_set(gwion, &v);
+  vector_release(&v);
 }
 
 ANN m_bool gwion_ini(const Gwion gwion, Arg *arg) {
index 7f2c762f4f47731e7a13ec0b5bf3acd6942d8ff2..37362f16a7ddc4dcf3ecd677c8c19dc1ac4796bc 100644 (file)
@@ -753,6 +753,14 @@ GWION_IMPORT(dict) {
   GWI_BB(gwi_func_arg(gwi, "float",    "key"));
   GWI_BB(gwi_func_end(gwi, mfun_float_h, ae_flag_none));
 
+  GWI_BB(gwi_func_ini(gwi, "int",    "hash"));
+  GWI_BB(gwi_func_arg(gwi, "time",    "key"));
+  GWI_BB(gwi_func_end(gwi, mfun_float_h, ae_flag_none));
+
+  GWI_BB(gwi_func_ini(gwi, "int",    "hash"));
+  GWI_BB(gwi_func_arg(gwi, "dur",    "key"));
+  GWI_BB(gwi_func_end(gwi, mfun_float_h, ae_flag_none));
+
   GWI_BB(gwi_func_ini(gwi, "int",    "hash"));
   GWI_BB(gwi_func_arg(gwi, "string",    "key"));
   GWI_BB(gwi_func_end(gwi, mfun_string_h, ae_flag_none));