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 #include <unistd.h> |
|
34 |
33 |
35 // LOW LEVEL LINKED LIST FUNCTIONS |
34 // LOW LEVEL LINKED LIST FUNCTIONS |
36 |
35 |
37 #define CX_LL_PTR(cur, off) (*(void**)(((char*)(cur))+(off))) |
36 #define CX_LL_PTR(cur, off) (*(void**)(((char*)(cur))+(off))) |
38 #define ll_prev(node) CX_LL_PTR(node, loc_prev) |
37 #define ll_prev(node) CX_LL_PTR(node, loc_prev) |