From eecd3f97ee25fa43a634dd5321d45c612ef48867 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Fri, 13 Aug 2021 14:12:24 +0000 Subject: [PATCH] Add missing errors to struct --- config.mk | 2 +- llist.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config.mk b/config.mk index 02066f5..57dd197 100644 --- a/config.mk +++ b/config.mk @@ -1,4 +1,4 @@ -VERSION = 1.0 +VERSION = 1.0.1 PREFIX = /usr/local diff --git a/llist.c b/llist.c index eaa19e9..1befe9a 100644 --- a/llist.c +++ b/llist.c @@ -61,6 +61,15 @@ struct corelibs_llist_interface const llist = { .cont = corelibs_llist_get_cont, .next = corelibs_llist_get_next, }, + .err = { + .ok = CORELIBS_LLIST_ERR_OK, + .unknown = CORELIBS_LLIST_ERR_UNK, + .undef = CORELIBS_LLIST_ERR_UNDEF, + .mem = { + .null = CORELIBS_LLIST_ERR_NULL, + .alloc = CORELIBS_LLIST_ERR_ALLOC, + }, + }, }; static llist_err