| 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) |