pike.git / src / mapping.h

version» Context lines:

pike.git/src/mapping.h:18:      struct keypair   {    struct keypair *next;    unsigned INT32 hval;    struct svalue ind, val;   };      struct mapping_data   { -  PIKE_MEMORY_OBJECT_MEMBERS; +  INT32 refs;    INT32 valrefs; /* lock values too */    INT32 hardlinks;    INT32 size, hashsize;    INT32 num_keypairs;    TYPE_FIELD ind_types, val_types;    INT16 flags;    struct keypair *free_list;    struct keypair *hash[1 /* hashsize */ ];    /* struct keypair data_block[ hashsize * AVG_LINK_LENGTH ] */   };      #undef MAPPING_SIZE_DEBUG   /* This debug doesn't work with weak mappings in the gc. */      struct mapping   { -  PIKE_MEMORY_OBJECT_MEMBERS; +  INT32 refs;   #ifdef MAPPING_SIZE_DEBUG    INT32 debug_size;   #endif    struct mapping_data *data;    struct mapping *next, *prev;   };         extern struct mapping *first_mapping;   extern struct mapping *gc_internal_mapping;