Sys.Signals module for a Variant type of signals (and a set_signal function that...
[ocaml.git] / byterun / prims.h
blobd8c1671e1bba9171d950614752397ad4b7505af9
1 /***********************************************************************/
2 /* */
3 /* Objective Caml */
4 /* */
5 /* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
6 /* */
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. */
11 /* */
12 /***********************************************************************/
14 /* $Id$ */
16 /* Interface with C primitives. */
18 #ifndef CAML_PRIMS_H
19 #define CAML_PRIMS_H
21 typedef value (*c_primitive)();
23 extern c_primitive caml_builtin_cprim[];
24 extern char * caml_names_of_builtin_cprim[];
26 extern struct ext_table caml_prim_table;
27 #ifdef DEBUG
28 extern struct ext_table caml_prim_name_table;
29 #endif
31 #define Primitive(n) ((c_primitive)(caml_prim_table.contents[n]))
33 extern char * caml_section_table;
34 extern asize_t caml_section_table_size;
36 #endif /* CAML_PRIMS_H */