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.215 2010/02/21 22:42:19 srb Exp $ + || $Id: mapping.c,v 1.216 2010/05/31 10:18:26 mast Exp $   */      #include "global.h"   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "pike_error.h"
pike.git/src/mapping.c:65:   #undef COUNT_OTHER      #define COUNT_OTHER() do{ \    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; \ +  size += (size_t) datasize; \   }while(0)      BLOCK_ALLOC_FILL_PAGES(mapping, 2)      #ifndef PIKE_MAPPING_KEYPAIR_LOOP   #define IF_ELSE_KEYPAIR_LOOP(X, Y) Y   #define FREE_KEYPAIR(md, k) do { \    k->next = md->free_list; \    md->free_list = k; \    } while(0)