diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-04 11:25:37 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-05 18:06:13 +0100 |
commit | dc8474d9034d9281463bb69f7f7a922e3ea713ee (patch) | |
tree | c3b870ada88f7aaa48918c4eb8b5d865f2f82019 /linked_list.h | |
parent | Work on propper memmory management for linked lists. (diff) | |
download | calp-dc8474d9034d9281463bb69f7f7a922e3ea713ee.tar.gz calp-dc8474d9034d9281463bb69f7f7a922e3ea713ee.tar.xz |
Normalize and improve INIT & FREE macros.
Diffstat (limited to 'linked_list.h')
-rw-r--r-- | linked_list.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linked_list.h b/linked_list.h index a76c3443..d1354e02 100644 --- a/linked_list.h +++ b/linked_list.h @@ -24,11 +24,11 @@ typedef struct { int length; } LLIST(TYPE); -int CONSTRUCTOR_DECL ( LLIST(TYPE) ); -int FREE_DECL( LLIST(TYPE) ); +INIT_F ( LLIST(TYPE) ); +FREE_F( LLIST(TYPE) ); -int CONSTRUCTOR_DECL ( LINK(TYPE) ); -int CONSTRUCTOR_DECL ( LINK(TYPE), TYPE* val ); +INIT_F ( LINK(TYPE) ); +INIT_F ( LINK(TYPE), TYPE* val ); int LLIST_CONS(TYPE) ( LLIST(TYPE)* lst, TYPE* val); |