pike.git / src / constants.c

version» Context lines:

pike.git/src/constants.c:79: Inside #if undefined(PIKE_NEW_BLOCK_ALLOC)
     #ifndef PIKE_NEW_BLOCK_ALLOC   #undef INIT_BLOCK   #define INIT_BLOCK(X) do { \    DO_IF_DEBUG (DOUBLELINK (first_callable, X)); \    } while (0)         BLOCK_ALLOC_FILL_PAGES(callable,2)   #else - #include "gjalloc.h" + #include "block_allocator.h"   static struct block_allocator callable_allocator    = BA_INIT_PAGES(sizeof(struct callable), 2*PIKE_MALLOC_PAGE_SIZE);      void really_free_callable(struct callable * c) {    EXIT_BLOCK(c);    ba_free(&callable_allocator, c);   }   void count_memory_in_callables(size_t * num, size_t * size) {    ba_count_all(&callable_allocator, num, size);   }