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-09-02 05:55:01 -07:00
|
|
|
typedef void (*scanning_action) (value, value *);
|
1997-05-13 07:45:38 -07:00
|
|
|
|
1997-09-02 05:55:01 -07:00
|
|
|
void oldify_local_roots (void);
|
|
|
|
void darken_all_roots (void);
|
|
|
|
void do_roots (scanning_action);
|
1997-08-29 08:37:22 -07:00
|
|
|
#ifndef NATIVE_CODE
|
1997-09-02 05:55:01 -07:00
|
|
|
void do_local_roots (scanning_action, value *, value *,
|
|
|
|
struct caml__roots_block *);
|
1997-08-29 08:37:22 -07:00
|
|
|
#else
|
1997-11-27 08:30:58 -08:00
|
|
|
void do_local_roots(scanning_action f, char * bottom_of_stack,
|
|
|
|
unsigned long last_retaddr, value * gc_regs,
|
|
|
|
struct caml__roots_block * local_roots);
|
1997-08-29 08:37:22 -07:00
|
|
|
#endif
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1997-09-02 05:55:01 -07:00
|
|
|
extern void (*scan_roots_hook) (scanning_action);
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
#endif /* _roots_ */
|