1995-08-09 08:06:35 -07:00
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Objective Caml */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/* Xavier Leroy and Damien Doligez, INRIA Rocquencourt */
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Copyright 1996 Institut National de Recherche en Informatique et */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* Automatique. Distributed only by permission. */
|
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
#ifndef _roots_
|
|
|
|
#define _roots_
|
|
|
|
|
|
|
|
#include "misc.h"
|
1997-08-29 08:37:22 -07:00
|
|
|
#include "memory.h"
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1997-05-13 07:45:38 -07:00
|
|
|
typedef void (*scanning_action) P((value, value *));
|
|
|
|
|
1995-07-10 02:48:27 -07:00
|
|
|
void oldify_local_roots P((void));
|
|
|
|
void darken_all_roots P((void));
|
1997-05-13 07:45:38 -07:00
|
|
|
void do_roots P((scanning_action));
|
1997-08-29 08:37:22 -07:00
|
|
|
#ifndef NATIVE_CODE
|
|
|
|
void do_local_roots P((scanning_action, value *, value *,
|
|
|
|
struct caml__roots_block *));
|
|
|
|
#else
|
|
|
|
void do_local_roots P((scanning_action, unsigned long, char *,
|
|
|
|
struct caml__roots_block *));
|
|
|
|
#endif
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-10-30 02:21:28 -08:00
|
|
|
extern void (*scan_roots_hook) P((scanning_action));
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
#endif /* _roots_ */
|