aboutsummaryrefslogtreecommitdiff
path: root/linked_list.inc.h
diff options
context:
space:
mode:
Diffstat (limited to 'linked_list.inc.h')
-rw-r--r--linked_list.inc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/linked_list.inc.h b/linked_list.inc.h
index be51e582..7d9452e0 100644
--- a/linked_list.inc.h
+++ b/linked_list.inc.h
@@ -52,7 +52,7 @@ INIT_F ( LINK(TYPE), TYPE* val ) {
return 0;
}
-int LLIST_CONS(TYPE) ( LLIST(TYPE)* lst, TYPE* val) {
+int PUSH(LLIST(TYPE)) ( LLIST(TYPE)* lst, TYPE* val) {
NEW(LINK(TYPE), link, val);
link->after = lst->head->after;
@@ -73,7 +73,7 @@ int DEEP_COPY(LLIST(TYPE)) ( LLIST(TYPE)* dest, LLIST(TYPE)* src ) {
while (n->after != NULL) {
NEW(TYPE, cpy);
DEEP_COPY(TYPE)(cpy, n->value);
- LLIST_CONS(TYPE) ( dest, cpy );
+ PUSH(LLIST(TYPE)) ( dest, cpy );
n = n->after;
}