pike.git / src / block_allocator.c

version» Context lines:

pike.git/src/block_allocator.c:116:   #endif    a->pages[i] = NULL;    }       if (a->size != i+1) {    a->size = i+1;    a->alloc = a->last_free = MAXIMUM(0, i);    }   }    - PMOD_EXPORT void ba_low_init_aligned(struct block_allocator * a) { + static void ba_low_init_aligned(struct block_allocator * a) {    unsigned INT32 block_size = MAXIMUM(a->l.block_size, sizeof(struct ba_block_header));       PIKE_MEMPOOL_CREATE(a);       if (a->l.alignment) {    if (a->l.alignment & (a->l.alignment - 1))    Pike_fatal("Block allocator a->l.alignment is not a power of 2.\n");    if (block_size & (a->l.alignment-1))    Pike_fatal("Block allocator block size is not aligned.\n");    a->l.doffset = PIKE_ALIGNTO(sizeof(struct ba_page), a->l.alignment);