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 */
|
2001-12-07 05:41:02 -08:00
|
|
|
/* under the terms of the GNU Library General Public License, with */
|
|
|
|
/* the special exception on linking described in file ../LICENSE. */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
/* structure of the stacks */
|
|
|
|
|
2003-12-15 10:10:51 -08:00
|
|
|
#ifndef CAML_STACKS_H
|
|
|
|
#define CAML_STACKS_H
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
#include "misc.h"
|
|
|
|
#include "mlvalues.h"
|
|
|
|
#include "memory.h"
|
|
|
|
|
2003-12-31 06:20:40 -08:00
|
|
|
CAMLextern value * caml_stack_low;
|
|
|
|
CAMLextern value * caml_stack_high;
|
|
|
|
CAMLextern value * caml_stack_threshold;
|
|
|
|
CAMLextern value * caml_extern_sp;
|
|
|
|
CAMLextern value * caml_trapsp;
|
|
|
|
CAMLextern value * caml_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])
|
|
|
|
|
2005-09-22 07:21:50 -07:00
|
|
|
void caml_init_stack (uintnat init_max_size);
|
2003-12-31 06:20:40 -08:00
|
|
|
void caml_realloc_stack (asize_t required_size);
|
2005-09-22 07:21:50 -07:00
|
|
|
void caml_change_max_stack_size (uintnat new_max_size);
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
|
2003-12-15 10:10:51 -08:00
|
|
|
#endif /* CAML_STACKS_H */
|