src/cx/list.h

changeset 412
af766caea48d
parent 406
9cbea761fbf7
child 415
067aa769796a
     1.1 --- a/src/cx/list.h	Sun Feb 14 11:31:13 2021 +0100
     1.2 +++ b/src/cx/list.h	Sun Feb 14 15:13:53 2021 +0100
     1.3 @@ -32,7 +32,7 @@
     1.4  #include <stdlib.h>
     1.5  #include "allocator.h"
     1.6  
     1.7 -typedef int(*CxListComparator)(void *left, void *right);
     1.8 +typedef int(*CxListComparator)(void const *left, void const *right);
     1.9  
    1.10  typedef struct {
    1.11      CxAllocator allocator;
    1.12 @@ -51,12 +51,12 @@
    1.13      void *(*last)(cx_list *list);
    1.14  } cx_list_class;
    1.15  
    1.16 -struct cx_list_s {
    1.17 +typedef struct {
    1.18      cx_list_class *cl;
    1.19      cx_list data;
    1.20 -};
    1.21 +} cx_list_s;
    1.22  
    1.23 -typedef struct cx_list_s *CxList;
    1.24 +typedef cx_list_s *CxList;
    1.25  
    1.26  int cxListAdd(CxList list, void *elem);
    1.27  

mercurial