pike.git / src / mapping.h

version» Context lines:

pike.git/src/mapping.h:60:   #define m_val_types(m) ((m)->data->val_types)   #define mapping_get_flags(m) ((m)->data->flags)   #define mapping_data_is_shared(m) ((m)->data->refs > 1)      #define MD_KEYPAIRS(MD, HSIZE) \    ( (struct keypair *) \    DO_ALIGN( PTR_TO_INT(MD) + OFFSETOF(mapping_data, hash) + HSIZE * sizeof(struct keypair *), \    ALIGNOF(struct keypair)) )       -  +    #ifndef PIKE_MAPPING_KEYPAIR_LOOP   #define NEW_MAPPING_LOOP(md) \    for((e=0) DO_IF_DMALLOC( ?0:(debug_malloc_touch(md)) ) ;e<(md)->hashsize;e++) for(k=(md)->hash[e];k;k=k->next)    - /* WARNING: this should not be used */ - #define MAPPING_LOOP(m) \ -  for((e=0) DO_IF_DMALLOC( ?0:(debug_malloc_touch(m),debug_malloc_touch((m)->data))) ;e<(m)->data->hashsize;e++) for(k=(m)->data->hash[e];k;k=k->next) -  +    #else /* PIKE_MAPPING_KEYPAIR_LOOP */      #define NEW_MAPPING_LOOP(md) \    for(((k = MD_KEYPAIRS(md, (md)->hashsize)), e=0) DO_IF_DMALLOC( ?0:(debug_malloc_touch(md)) ) ; e<(md)->size; e++,k++)    - /* WARNING: this should not be used */ - #define MAPPING_LOOP(m) \ -  for(((k = MD_KEYPAIRS((m)->data, (m)->data->hashsize)), e=0) DO_IF_DMALLOC( ?0:(debug_malloc_touch(m),debug_malloc_touch((m)->data)) ) ; e<(m)->data->size; e++,k++) -  +    #endif /* PIKE_MAPPING_KEYPAIR_LOOP */         PMOD_EXPORT void really_free_mapping(struct mapping *md);      #define inl_free_mapping(M) do{ \    struct mapping *m_=(M); \    debug_malloc_touch(m_); \    DO_IF_DEBUG ( \    DO_IF_PIKE_CLEANUP ( \