src/linked_list.c

changeset 1533
6d65b1e97136
parent 1532
313fd460d264
child 1534
38d3f40a50ec
equal deleted inserted replaced
1532:313fd460d264 1533:6d65b1e97136
28 28
29 #include "cx/linked_list.h" 29 #include "cx/linked_list.h"
30 #include "cx/compare.h" 30 #include "cx/compare.h"
31 #include <string.h> 31 #include <string.h>
32 #include <assert.h> 32 #include <assert.h>
33 #if __STDC_VERSION__ < 202311L
34 #include <stdalign.h>
35 #endif
33 36
34 // LOW LEVEL LINKED LIST FUNCTIONS 37 // LOW LEVEL LINKED LIST FUNCTIONS
35 38
36 #define CX_LL_PTR(cur, off) (*(void**)(((char*)(cur))+(off))) 39 #define CX_LL_PTR(cur, off) (*(void**)(((char*)(cur))+(off)))
37 #define ll_prev(node) CX_LL_PTR(node, loc_prev) 40 #define ll_prev(node) CX_LL_PTR(node, loc_prev)

mercurial