Lines Matching refs:ListNode

121 typedef struct ListNode {
124 struct ListNode *next;
125 struct ListNode *prev;
126 } ListNode;
134 ListNode node; /* Node within list of all allocated blocks. */
139 const ListNode *check_point; /* Check point of the test if there's a */
160 ListNode symbol_values_list_head;
188 static ListNode* list_initialize(ListNode * const node);
189 static ListNode* list_add(ListNode * const head, ListNode *new_node);
190 static ListNode* list_add_value(ListNode * const head, const void *value,
192 static ListNode* list_remove(
193 ListNode * const node, const CleanupListValue cleanup_value,
196 ListNode * const node, const CleanupListValue cleanup_value,
198 static int list_empty(const ListNode * const head);
200 ListNode * const head, const void *value,
201 const EqualityFunction equal_func, ListNode **output);
202 static int list_first(ListNode * const head, ListNode **output);
203 static ListNode* list_free(
204 ListNode * const head, const CleanupListValue cleanup_value,
208 ListNode * const symbol_map_head, const char * const symbol_names[],
211 ListNode * const symbol_map_head, const char * const symbol_names[],
216 static void remove_always_return_values(ListNode * const map_head,
219 const ListNode * const map_head, const char * const error_message,
251 static CMOCKA_THREAD ListNode global_function_result_map_head;
257 static CMOCKA_THREAD ListNode global_function_parameter_map_head;
262 static CMOCKA_THREAD ListNode global_allocated_blocks;
331 const ListNode *check_point; /* Check point of the test if there's a setup function. */
429 static ListNode* list_initialize(ListNode * const node) {
442 static ListNode* list_add_value(ListNode * const head, const void *value,
444 ListNode * const new_node = (ListNode*)malloc(sizeof(ListNode));
454 static ListNode* list_add(ListNode * const head, ListNode *new_node) {
466 static ListNode* list_remove(
467 ListNode * const node, const CleanupListValue cleanup_value,
481 ListNode * const node, const CleanupListValue cleanup_value,
494 static ListNode* list_free(
495 ListNode * const head, const CleanupListValue cleanup_value,
506 static int list_empty(const ListNode * const head) {
516 static int list_find(ListNode * const head, const void *value,
517 const EqualityFunction equal_func, ListNode **output) {
518 ListNode *current;
530 static int list_first(ListNode * const head, ListNode **output) {
531 ListNode *target_node;
577 static void add_symbol_value(ListNode * const symbol_map_head,
582 ListNode *target_node;
618 ListNode * const head, const char * const symbol_names[],
621 ListNode *target_node;
630 ListNode *child_list;
639 ListNode *value_node = NULL;
668 static void remove_always_return_values(ListNode * const map_head,
670 ListNode *current;
676 ListNode * const next = current->next;
677 ListNode *child_list;
683 ListNode * const child_node = child_list->next;
706 const ListNode * const map_head, const char * const error_message,
708 const ListNode *current;
717 const ListNode *child_list;
723 const ListNode *child_node;
1492 static ListNode* get_allocated_blocks_list() {
1581 ListNode * const block_list = get_allocated_blocks_list();
1705 static const ListNode* check_point_allocated_blocks() {
1712 static int display_allocated_blocks(const ListNode * const check_point) {
1713 const ListNode * const head = get_allocated_blocks_list();
1714 const ListNode *node;
1738 static void free_allocated_blocks(const ListNode * const check_point) {
1739 const ListNode * const head = get_allocated_blocks_list();
1740 const ListNode *node;
1755 static void fail_if_blocks_allocated(const ListNode * const check_point,
2267 const ListNode * const volatile check_point = (const ListNode*)
2466 const ListNode *group_check_point = check_point_allocated_blocks();
2601 const ListNode * const volatile check_point = (const ListNode*)
2682 const ListNode * const check_point = check_point_allocated_blocks();
2727 const ListNode *test_check_point = NULL;
2845 const ListNode * const check_point = check_point_allocated_blocks();