pike.git / src / block_alloc.h

version» Context lines:

pike.git/src/block_alloc.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: block_alloc.h,v 1.74 2004/12/07 21:18:14 grubba Exp $ + || $Id: block_alloc.h,v 1.75 2004/12/08 09:38:46 grubba Exp $   */      #undef PRE_INIT_BLOCK   #undef DO_PRE_INIT_BLOCK   #undef INIT_BLOCK   #undef EXIT_BLOCK   #undef BLOCK_ALLOC   #undef LOW_PTR_HASH_ALLOC   #undef PTR_HASH_ALLOC_FIXED   #undef PTR_HASH_ALLOC
pike.git/src/block_alloc.h:122:    if (!ctx) { \    fprintf(stderr, "Fatal: out of memory.\n"); \    exit(17); \    } \    ctx->next = PIKE_CONCAT(DATA, _ctxs); \    PIKE_CONCAT(DATA, _ctxs) = ctx; \    ctx->blocks = PIKE_CONCAT(DATA,_blocks); \    ctx->free_blocks = PIKE_CONCAT(DATA,_free_blocks); \    ctx->num_empty_blocks = PIKE_CONCAT3(num_empty_,DATA,_blocks); \    PIKE_CONCAT(DATA,_blocks) = 0; \ -  PIKE_CONCAT(DATA,_free_blocks) = (void *)-1; \ +  PIKE_CONCAT(DATA,_free_blocks) = 0; \    PIKE_CONCAT3(num_empty_,DATA,_blocks) = 0; \   } \    \   static void PIKE_CONCAT(alloc_more_,DATA)(void) \   { \    struct PIKE_CONCAT(DATA,_block) *n; \    size_t e; \    n=(struct PIKE_CONCAT(DATA,_block) *) \    malloc(sizeof(struct PIKE_CONCAT(DATA,_block))); \    if(!n) \