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 */
|
1999-11-17 10:59:06 -08:00
|
|
|
/* en Automatique. All rights reserved. This file is distributed */
|
|
|
|
/* under the terms of the GNU Library General Public License. */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $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"
|
|
|
|
|
2001-08-28 07:47:48 -07:00
|
|
|
CAMLextern value * stack_low;
|
|
|
|
CAMLextern value * stack_high;
|
|
|
|
CAMLextern value * stack_threshold;
|
|
|
|
CAMLextern value * extern_sp;
|
|
|
|
CAMLextern value * trapsp;
|
|
|
|
CAMLextern 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])
|
|
|
|
|
1997-09-02 05:55:01 -07:00
|
|
|
void reset_roots (void);
|
|
|
|
void init_stack (unsigned long init_max_size);
|
2001-05-28 08:14:18 -07:00
|
|
|
void realloc_stack (asize_t required_size);
|
1997-09-02 05:55:01 -07:00
|
|
|
void change_max_stack_size (unsigned long new_max_size);
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* _stacks_ */
|
|
|
|
|