pike.git / src / mapping.h

version» Context lines:

pike.git/src/mapping.h:14:    TYPE_FIELD ind_types, val_types;    struct mapping *next, *prev;    struct keypair **hash;    struct keypair *free_list;   };      #define m_sizeof(m) ((m)->size)   #define m_ind_types(m) ((m)->ind_types)   #define m_val_types(m) ((m)->val_types)    - #define free_mapping(M) do{ struct mapping *m_=(M); if(!--m_->refs) really_free_mapping(m_); }while(0) + #define free_mapping(M) do{ struct mapping *m_=(M); debug_malloc_touch(m_); if(!--m_->refs) really_free_mapping(m_); }while(0)      /* Prototypes begin here */   struct keypair; - struct mapping *allocate_mapping(int size); + struct mapping *debug_allocate_mapping(int size);   void really_free_mapping(struct mapping *m);   void mapping_fix_type_field(struct mapping *m);   void mapping_insert(struct mapping *m,    struct svalue *key,    struct svalue *val);   union anything *mapping_get_item_ptr(struct mapping *m,    struct svalue *key,    TYPE_T t);   void map_delete(struct mapping *m,    struct svalue *key);
pike.git/src/mapping.h:64:    struct svalue *start);   void check_mapping(struct mapping *m);   void check_all_mappings(void);   void gc_mark_mapping_as_referenced(struct mapping *m);   void gc_check_all_mappings(void);   void gc_mark_all_mappings(void);   void gc_free_all_unreferenced_mappings(void);   void zap_all_mappings(void);   void count_memory_in_mappings(INT32 *num_, INT32 *size_);   /* Prototypes end here */ +  + #ifdef DEBUG_MALLOC + #define allocate_mapping(X) ((struct mapping *)debug_malloc_touch(debug_allocate_mapping(X))) + #else + #define allocate_mapping debug_allocate_mapping   #endif -  +  + #endif