563 } |
563 } |
564 |
564 |
565 // HIGH LEVEL LINKED LIST IMPLEMENTATION |
565 // HIGH LEVEL LINKED LIST IMPLEMENTATION |
566 |
566 |
567 typedef struct cx_linked_list_node cx_linked_list_node; |
567 typedef struct cx_linked_list_node cx_linked_list_node; |
|
568 // IMPORTANT: the layout must stay exactly like this, because kv_list.c uses that! |
568 struct cx_linked_list_node { |
569 struct cx_linked_list_node { |
569 cx_linked_list_node *prev; |
570 cx_linked_list_node *prev; |
570 cx_linked_list_node *next; |
571 cx_linked_list_node *next; |
571 char payload[]; |
572 char payload[]; |
572 }; |
573 }; |