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, projet Cristal, 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
|
|
|
/* structure of the stacks */
|
|
|
|
|
|
|
|
#ifndef _stacks_
|
|
|
|
#define _stacks_
|
|
|
|
|
|
|
|
|
|
|
|
#include "misc.h"
|
|
|
|
#include "mlvalues.h"
|
|
|
|
#include "memory.h"
|
|
|
|
|
|
|
|
extern value * stack_low;
|
|
|
|
extern value * stack_high;
|
|
|
|
extern value * stack_threshold;
|
|
|
|
extern value * extern_sp;
|
|
|
|
extern value * trapsp;
|
1996-11-29 10:36:42 -08:00
|
|
|
extern value * trap_barrier;
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
#define Trap_pc(tp) (((code_t *)(tp))[0])
|
|
|
|
#define Trap_link(tp) (((value **)(tp))[1])
|
|
|
|
|
|
|
|
void reset_roots P((void));
|
1997-05-13 07:45:38 -07:00
|
|
|
void init_stack P((unsigned long init_max_size));
|
1995-05-04 03:15:53 -07:00
|
|
|
void realloc_stack P((void));
|
1997-05-13 07:45:38 -07:00
|
|
|
void change_max_stack_size P((unsigned long new_max_size));
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* _stacks_ */
|
|
|
|
|