diff --git a/object.c b/object.c
index 72f6aa552f79edcd5f4f5c4a647ab62503365b1b..63e6e784d41ef5aa7bb387a96a85bf0f8e7248ab 100644 (file)
--- a/object.c
+++ b/object.c
return new_list;
}
return new_list;
}
+void object_list_append(struct object *item,
+ struct object_list **list_p)
+{
+ while (*list_p) {
+ list_p = &((*list_p)->next);
+ }
+ *list_p = xmalloc(sizeof(struct object_list));
+ (*list_p)->next = NULL;
+ (*list_p)->item = item;
+}
+
unsigned object_list_length(struct object_list *list)
{
unsigned ret = 0;
unsigned object_list_length(struct object_list *list)
{
unsigned ret = 0;