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.26 2000/07/06 23:25:26 mast Exp $ +  * $Id: mapping.h,v 1.27 2000/07/18 05:48:20 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:143:   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);   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 real_gc_cycle_check_mapping(struct mapping *m, int weak);   void gc_cycle_check_all_mappings(void); -  + void gc_zap_ext_weak_refs_in_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 */      #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)) + #define gc_cycle_check_mapping(X, WEAK) \ +  gc_cycle_enqueue((gc_cycle_check_cb *) real_gc_cycle_check_mapping, (X), (WEAK))      #endif /* MAPPING_H */