src/cx/list.h

changeset 519
79d14e821b3a
parent 508
8aea65ae1eaf
child 524
e98b09018d32
     1.1 --- a/src/cx/list.h	Sat Apr 16 20:17:01 2022 +0200
     1.2 +++ b/src/cx/list.h	Sat Apr 16 20:44:47 2022 +0200
     1.3 @@ -203,18 +203,13 @@
     1.4   * if the content destructor did not do that or no content destructor exists
     1.5   */
     1.6  __attribute__((__nonnull__(1)))
     1.7 -static inline void cxListMemoryMgmt(
     1.8 +void cxListMemoryMgmt(
     1.9          CxList *list,
    1.10          cx_destructor_func list_destructor,
    1.11          cx_destructor_func content_destructor,
    1.12          bool list_autofree,
    1.13          bool content_autofree
    1.14 -) {
    1.15 -    if (list_destructor != NULL) list->list_destructor = list_destructor;
    1.16 -    list->content_destructor = content_destructor;
    1.17 -    list->autofree = list_autofree;
    1.18 -    list->autofree_contents = content_autofree;
    1.19 -}
    1.20 +);
    1.21  
    1.22  /**
    1.23   * Adds an item to the end of the list.

mercurial