Lines Matching refs:alloc_calls
32 int alloc_calls; variable
40 alloc_calls = 0; in set_mock_malloc()
50 assert_int_equal(alloc_calls, alloc_calls_expected); in finalize_mock_malloc()
55 if (alloc_calls >= alloc_calls_expected) { in instrumented_malloc()
59 if (expectations[alloc_calls] == MALLOC) { in instrumented_malloc()
60 alloc_calls++; in instrumented_malloc()
62 } else if (expectations[alloc_calls] == MALLOC_FAIL) { in instrumented_malloc()
63 alloc_calls++; in instrumented_malloc()
74 if (alloc_calls >= alloc_calls_expected) { in instrumented_realloc()
78 if (expectations[alloc_calls] == REALLOC) { in instrumented_realloc()
79 alloc_calls++; in instrumented_realloc()
81 } else if (expectations[alloc_calls] == REALLOC_FAIL) { in instrumented_realloc()
82 alloc_calls++; in instrumented_realloc()