pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c: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: mapping.c,v 1.154 2002/10/28 13:03:16 nilsson Exp $ + || $Id: mapping.c,v 1.155 2002/11/24 22:47:06 mast Exp $   */      #include "global.h" - RCSID("$Id: mapping.c,v 1.154 2002/10/28 13:03:16 nilsson Exp $"); + RCSID("$Id: mapping.c,v 1.155 2002/11/24 22:47:06 mast Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "pike_memory.h"   #include "dynamic_buffer.h"   #include "interpret.h"
pike.git/src/mapping.c:69:    struct mapping *m; \    double datasize = 0.0; \    for(m=first_mapping;m;m=m->next) \    { \    datasize+=MAPPING_DATA_SIZE(m->data->hashsize, m->data->num_keypairs) / \    (double) m->data->refs; \    } \    size += (INT32) datasize; \   }while(0)    - BLOCK_ALLOC(mapping, 511) + BLOCK_ALLOC_FILL_PAGES(mapping, 2)      #ifndef PIKE_MAPPING_KEYPAIR_LOOP   #define FREE_KEYPAIR(md, k) do { \    k->next = md->free_list; \    md->free_list = k; \    } while(0)   #else /* PIKE_MAPPING_KEYPAIR_LOOP */   #define FREE_KEYPAIR(md, k) do { \    md->free_list--; \    if (k != md->free_list) { \