src/linked_list.c

changeset 1435
48ebf22b698e
parent 1433
81c301a59b7c
equal deleted inserted replaced
1434:27d71ce751e9 1435:48ebf22b698e
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)

mercurial