Branch: Tag:

2008-05-11

2008-05-11 02:36:00 by Martin Stjernholm <mast@lysator.liu.se>

Implemented visit functions for the visit_thing_fn interface. The gc
check/mark functions are restored to how they were before the
GC_PASS_COUNT_MEMORY stuff.

Rev: src/array.c:1.206
Rev: src/array.h:1.74
Rev: src/constants.c:1.59
Rev: src/constants.h:1.36
Rev: src/mapping.c:1.200
Rev: src/mapping.h:1.67
Rev: src/multiset.c:1.110
Rev: src/multiset.h:1.43
Rev: src/object.c:1.290
Rev: src/object.h:1.95
Rev: src/pike_types.c:1.331
Rev: src/pike_types.h:1.114
Rev: src/program.c:1.691
Rev: src/program.h:1.242
Rev: src/stralloc.c:1.218
Rev: src/stralloc.h:1.103

2:   || 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: program.h,v 1.241 2008/05/01 21:44:33 mast Exp $ + || $Id: program.h,v 1.242 2008/05/11 02:35:23 mast Exp $   */      #ifndef PROGRAM_H
905:   void placeholder_index(INT32 args);   void init_program(void);   void cleanup_program(void); + void visit_program (struct program *p, int action);   void gc_mark_program_as_referenced(struct program *p);   void real_gc_cycle_check_program(struct program *p, int weak);   unsigned gc_touch_all_programs(void);
1009:      #define start_new_program() debug_start_new_program(__LINE__,__FILE__)    + #define visit_program_ref(P, REF_TYPE) \ +  visit_ref (pass_program (P), (REF_TYPE), \ +  (visit_thing_fn *) &visit_program, NULL)   #define gc_cycle_check_program(X, WEAK) \    gc_cycle_enqueue((gc_cycle_check_cb *) real_gc_cycle_check_program, (X), (WEAK))