Commit d6b11e91f526f24fbb231a32d310d388b0331405

Thomas de Grivel 2024-12-03T22:48:08

fix alist_access and more bindings for serialize

diff --git a/lib/kc3/0.1/serialize.kc3 b/lib/kc3/0.1/serialize.kc3
index 02c3226..2322ea8 100644
--- a/lib/kc3/0.1/serialize.kc3
+++ b/lib/kc3/0.1/serialize.kc3
@@ -1,5 +1,9 @@
 defmodule Serialize do
 
+  def delete = cfn Void "kc3_serialize_delete" (Ptr)
+
+  def new = cfn Ptr "kc3_serialize_new" (Result)
+
   def tag = cfn Bool "kc3_serialize_tag" (Ptr, Tag)
 
 end
diff --git a/libkc3/alist.c b/libkc3/alist.c
index b7a105a..dc60c2e 100644
--- a/libkc3/alist.c
+++ b/libkc3/alist.c
@@ -34,7 +34,6 @@ s_tag * alist_access (s_list *alist,
   s_list *next;
   s_tag *r;
   s_tag tag;
-  assert(alist);
   assert(key);
   assert(dest);
   if (! list_is_alist(alist)) {