aboutsummaryrefslogtreecommitdiff
path: root/linked_list.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-26 11:32:02 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-26 11:32:02 +0100
commit498e984690895987067743bb94ee83d49da7ecb4 (patch)
tree773ffd98aa3e085d290b60d017c31810d7f641e1 /linked_list.h
parentStart update of types. (diff)
downloadcalp-498e984690895987067743bb94ee83d49da7ecb4.tar.gz
calp-498e984690895987067743bb94ee83d49da7ecb4.tar.xz
Fix memmory errors.
Diffstat (limited to 'linked_list.h')
-rw-r--r--linked_list.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linked_list.h b/linked_list.h
index a17bd797..ec1e17e0 100644
--- a/linked_list.h
+++ b/linked_list.h
@@ -63,6 +63,10 @@ int EMPTY(LLIST(TYPE)) ( LLIST(TYPE)* llist );
*/
int RESET(LLIST(TYPE)) ( LLIST(TYPE)* llist );
+/*
+ * Takes to lists, and merges them into a single one. Destroys new_ in
+ * the process.
+ */
LLIST(TYPE)* RESOLVE(LLIST(TYPE)) (LLIST(TYPE)* dest, LLIST(TYPE)* new_);
FMT_F(LLIST(TYPE));