pike.git / src / mapping.h

version» Context lines:

pike.git/src/mapping.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: mapping.h,v 1.66 2008/01/05 17:58:54 nilsson Exp $ + || $Id: mapping.h,v 1.67 2008/05/11 02:35:22 mast Exp $   */      #ifndef MAPPING_H   #define MAPPING_H      #include "svalue.h"   #include "dmalloc.h"   #include "block_alloc_h.h"      /* Compatible with PIKE_WEAK_INDICES and PIKE_WEAK_VALUES. */
pike.git/src/mapping.h:365:   PMOD_EXPORT struct mapping *copy_mapping_recursively(struct mapping *m,    struct mapping *p);   PMOD_EXPORT void mapping_search_no_free(struct svalue *to,    struct mapping *m,    const struct svalue *look_for,    const struct svalue *key );   #ifdef PIKE_DEBUG   void check_mapping(const struct mapping *m);   void check_all_mappings(void);   #endif + void visit_mapping (struct mapping *m, int action);   void gc_mark_mapping_as_referenced(struct mapping *m);   void real_gc_cycle_check_mapping(struct mapping *m, int weak);   unsigned gc_touch_all_mappings(void);   void gc_check_all_mappings(void);   void gc_mark_all_mappings(void);   void gc_cycle_check_all_mappings(void);   void gc_zap_ext_weak_refs_in_mappings(void);   size_t gc_free_all_unreferenced_mappings(void);   void simple_describe_mapping(struct mapping *m);   void debug_dump_mapping(struct mapping *m);   int mapping_is_constant(struct mapping *m,    struct processing *p);   /* Prototypes end here */      #define allocate_mapping(X) dmalloc_touch(struct mapping *,debug_allocate_mapping(X))    -  + #define visit_mapping_ref(M, REF_TYPE) \ +  visit_ref (pass_mapping (M), (REF_TYPE), \ +  (visit_thing_fn *) &visit_mapping, NULL)   #define gc_cycle_check_mapping(X, WEAK) \    gc_cycle_enqueue((gc_cycle_check_cb *) real_gc_cycle_check_mapping, (X), (WEAK))      #endif /* MAPPING_H */