comparison src/gc.h @ 3263:d674024a8674

[xemacs-hg @ 2006-02-27 16:29:00 by crestani] - Introduce a fancy asynchronous finalization strategy on C level. - Merge the code conditioned on MC_ALLOC into the code conditioned on NEW_GC. - Remove the possibility to free objects manually outside garbage collections when the new collector is enabled.
author crestani
date Mon, 27 Feb 2006 16:29:29 +0000
parents 141c2920ea48
children 509d2981ffea
comparison
equal deleted inserted replaced
3262:79d41cfd8e6b 3263:d674024a8674
167 #ifndef NEW_GC 167 #ifndef NEW_GC
168 /* Needed prototypes due to the garbage collector code move from 168 /* Needed prototypes due to the garbage collector code move from
169 alloc.c to gc.c. */ 169 alloc.c to gc.c. */
170 void gc_sweep_1 (void); 170 void gc_sweep_1 (void);
171 171
172 #ifndef MC_ALLOC
173 extern void *breathing_space; 172 extern void *breathing_space;
174 #endif /* not MC_ALLOC */
175 #endif /* not NEW_GC */ 173 #endif /* not NEW_GC */
174
175 #ifdef NEW_GC
176 void add_finalizable_obj (Lisp_Object obj);
177 void register_for_finalization (void);
178 void run_finalizers (void);
179 #endif /* NEW_GC */
176 180
177 END_C_DECLS 181 END_C_DECLS
178 182
179 #endif /* INCLUDED_gc_h_ */ 183 #endif /* INCLUDED_gc_h_ */