1 /***********************************************************************/
5 /* Xavier Leroy and Damien Doligez, INRIA Rocquencourt */
7 /* Copyright 1996 Institut National de Recherche en Informatique et */
8 /* en Automatique. All rights reserved. This file is distributed */
9 /* under the terms of the GNU Library General Public License, with */
10 /* the special exception on linking described in file ../LICENSE. */
12 /***********************************************************************/
14 /* $Id: alloc.h 7064 2005-09-22 14:21:50Z xleroy $ */
20 #ifndef CAML_NAME_SPACE
21 #include "compatibility.h"
26 CAMLextern value caml_alloc (mlsize_t, tag_t);
27 CAMLextern value caml_alloc_small (mlsize_t, tag_t);
28 CAMLextern value caml_alloc_tuple (mlsize_t);
29 CAMLextern value caml_alloc_string (mlsize_t); /* size in bytes */
30 CAMLextern value caml_copy_string (char const *);
31 CAMLextern value caml_copy_string_array (char const **);
32 CAMLextern value caml_copy_double (double);
33 CAMLextern value caml_copy_int32 (int32); /* defined in [ints.c] */
34 CAMLextern value caml_copy_int64 (int64); /* defined in [ints.c] */
35 CAMLextern value caml_copy_nativeint (intnat); /* defined in [ints.c] */
36 CAMLextern value caml_alloc_array (value (*funct) (char const *),
39 typedef void (*final_fun)(value);
40 CAMLextern value caml_alloc_final (mlsize_t, /*size in words*/
41 final_fun, /*finalization function*/
42 mlsize_t, /*resources consumed*/
43 mlsize_t /*max resources*/);
45 CAMLextern int caml_convert_flag_list (value, int *);
47 #endif /* CAML_ALLOC_H */