]> Nishi Git Mirror - gwion.git/commitdiff
:art: Add some Machine functions [skip ci]
authorJérémie Astor <fennecdjay@gmail.com>
Sun, 13 Jun 2021 17:10:51 +0000 (19:10 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Sun, 13 Jun 2021 17:10:51 +0000 (19:10 +0200)
plug
src/import/cleaner.c
src/import/import_enum.c

diff --git a/plug b/plug
index 941ed33855c0f1d116a957eb35f94d9c8bdb1165..a853cfd9bbaf47604202dda4ecd168a62091b13e 160000 (submodule)
--- a/plug
+++ b/plug
@@ -1 +1 @@
-Subproject commit 941ed33855c0f1d116a957eb35f94d9c8bdb1165
+Subproject commit a853cfd9bbaf47604202dda4ecd168a62091b13e
index 7d6b65defd28b4e8e8e43721e0362caa4259d832..7e5ba6f38ab13e58f938c532a1a8a4bd7df72719 100644 (file)
@@ -35,7 +35,7 @@ ANN void ck_end(const Gwi gwi) {
 }
 
 typedef void (*cleaner)(MemPool, ImportCK *);
-static cleaner cleaners[] = {ck_clean_edef, ck_clean_udef, ck_clean_tdef,
+static cleaner cleaners[] = {NULL, ck_clean_udef, ck_clean_tdef,
                              NULL, //  ck_clean_oper,
                              ck_clean_item, ck_clean_fdef};
 
index df1d549ecde8e7c15a24bfc9412903404e3075b3..02f8f79b7e8db7964f19f8118eca6b4a22e39129 100644 (file)
@@ -93,15 +93,3 @@ ANN Type gwi_enum_end(const Gwi gwi) {
   ck_end(gwi);
   return t;
 }
-
-ANN void ck_clean_edef(MemPool mp, ImportCK *ck) {
-  /*
-    if(ck->tmpl)
-      free_id_list(mp, ck->tmpl);
-    if(ck->v.ptr) {
-      for(m_uint i = 0; i < vector_size(&ck->v); ++i)
-        mp_free2(mp, SZ_INT, (m_uint*)vector_at(&ck->v, i));
-      vector_release(&ck->v);
-    }
-  */
-}