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
|
|
|
/* Interface with C primitives. */
|
|
|
|
|
2003-12-15 10:10:51 -08:00
|
|
|
#ifndef CAML_PRIMS_H
|
|
|
|
#define CAML_PRIMS_H
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
typedef value (*c_primitive)();
|
|
|
|
|
2004-01-01 08:42:43 -08:00
|
|
|
extern c_primitive caml_builtin_cprim[];
|
|
|
|
extern char * caml_names_of_builtin_cprim[];
|
2001-08-28 07:47:48 -07:00
|
|
|
|
2004-01-01 08:42:43 -08:00
|
|
|
extern struct ext_table caml_prim_table;
|
2003-05-26 05:41:54 -07:00
|
|
|
#ifdef DEBUG
|
2004-01-01 08:42:43 -08:00
|
|
|
extern struct ext_table caml_prim_name_table;
|
2003-05-26 05:41:54 -07:00
|
|
|
#endif
|
2001-08-28 07:47:48 -07:00
|
|
|
|
2004-01-01 08:42:43 -08:00
|
|
|
#define Primitive(n) ((c_primitive)(caml_prim_table.contents[n]))
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2004-02-22 07:07:51 -08:00
|
|
|
extern char * caml_section_table;
|
|
|
|
extern asize_t caml_section_table_size;
|
|
|
|
|
2003-12-15 10:10:51 -08:00
|
|
|
#endif /* CAML_PRIMS_H */
|