Lines Matching refs:alloc_calls
10 int alloc_calls; variable
18 alloc_calls = 0; in set_mock_malloc()
28 assert_int_equal(alloc_calls, alloc_calls_expected); in finalize_mock_malloc()
46 if (alloc_calls >= alloc_calls_expected) { in instrumented_malloc()
50 if (expectations[alloc_calls] == MALLOC) { in instrumented_malloc()
51 alloc_calls++; in instrumented_malloc()
53 } else if (expectations[alloc_calls] == MALLOC_FAIL) { in instrumented_malloc()
54 alloc_calls++; in instrumented_malloc()
61 size, alloc_calls, alloc_calls_expected, in instrumented_malloc()
62 alloc_calls < alloc_calls_expected ? expectations[alloc_calls] : -1); in instrumented_malloc()
69 if (alloc_calls >= alloc_calls_expected) { in instrumented_realloc()
73 if (expectations[alloc_calls] == REALLOC) { in instrumented_realloc()
74 alloc_calls++; in instrumented_realloc()
76 } else if (expectations[alloc_calls] == REALLOC_FAIL) { in instrumented_realloc()
77 alloc_calls++; in instrumented_realloc()
84 size, alloc_calls, alloc_calls_expected, in instrumented_realloc()
85 alloc_calls < alloc_calls_expected ? expectations[alloc_calls] : -1); in instrumented_realloc()