pike.git / src / mapping.h

version» Context lines:

pike.git/src/mapping.h:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/      /* -  * $Id: mapping.h,v 1.24 2000/04/23 03:01:25 mast Exp $ +  * $Id: mapping.h,v 1.25 2000/06/09 22:43:05 mast Exp $    */   #ifndef MAPPING_H   #define MAPPING_H      #include "las.h"   #include "block_alloc_h.h"      #define MAPPING_FLAG_WEAK 1      struct keypair
pike.git/src/mapping.h:44: Inside #if defined(PIKE_DEBUG)
  #ifdef PIKE_DEBUG    INT32 debug_size;   #endif    INT16 flags;    struct mapping_data *data;    struct mapping *next, *prev;   };         extern struct mapping *first_mapping; + extern struct mapping *gc_internal_mapping;      #define map_delete(m,key) map_delete_no_free(m, key, 0)   #define m_sizeof(m) ((m)->data->size)   #define m_ind_types(m) ((m)->data->ind_types)   #define m_val_types(m) ((m)->data->val_types)         #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)   
pike.git/src/mapping.h:138:   void f_aggregate_mapping(INT32 args);   struct mapping *copy_mapping_recursively(struct mapping *m,    struct processing *p);   void mapping_search_no_free(struct svalue *to,    struct mapping *m,    struct svalue *look_for,    struct svalue *key );   void check_mapping(struct mapping *m);   void check_all_mappings(void);   void gc_mark_mapping_as_referenced(struct mapping *m); - INT32 gc_touch_all_mappings(void); + unsigned gc_touch_all_mappings(void);   void gc_check_all_mappings(void);   void gc_mark_all_mappings(void); -  + void real_gc_cycle_check_mapping(struct mapping *m); + void real_gc_cycle_check_mapping_weak(struct mapping *m); + void gc_cycle_check_all_mappings(void);   void gc_free_all_unreferenced_mappings(void);   void simple_describe_mapping(struct mapping *m);   void debug_dump_mapping(struct mapping *m);   void zap_all_mappings(void);   /* Prototypes end here */ - #endif +       #define allocate_mapping(X) dmalloc_touch(struct mapping *,debug_allocate_mapping(X))    -  + #define gc_cycle_check_mapping(X) \ +  enqueue_lifo(&gc_mark_queue, (queue_call) real_gc_cycle_check_mapping, (X)) + #define gc_cycle_check_mapping_weak(X) \ +  enqueue_lifo(&gc_mark_queue, (queue_call) real_gc_cycle_check_mapping_weak, (X)) +  + #endif /* MAPPING_H */