2001-08-28 07:47:48 -07:00
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
|
|
|
/* Objective Caml */
|
|
|
|
/* */
|
|
|
|
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
|
|
|
|
/* */
|
|
|
|
/* Copyright 2000 Institut National de Recherche en Informatique et */
|
|
|
|
/* 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. */
|
2001-08-28 07:47:48 -07:00
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
/* Dynamic loading of C primitives. */
|
|
|
|
|
2003-12-15 10:10:51 -08:00
|
|
|
#ifndef CAML_DYNLINK_H
|
|
|
|
#define CAML_DYNLINK_H
|
2001-08-28 07:47:48 -07:00
|
|
|
|
|
|
|
#include "misc.h"
|
|
|
|
|
|
|
|
/* Build the table of primitives, given a search path, a list
|
|
|
|
of shared libraries, and a list of primitive names
|
|
|
|
(all three 0-separated in char arrays).
|
|
|
|
Abort the runtime system on error. */
|
2004-01-01 08:42:43 -08:00
|
|
|
extern void caml_build_primitive_table(char * lib_path,
|
|
|
|
char * libs,
|
|
|
|
char * req_prims);
|
2001-08-28 07:47:48 -07:00
|
|
|
|
|
|
|
/* The search path for shared libraries */
|
2004-01-01 08:42:43 -08:00
|
|
|
extern struct ext_table caml_shared_libs_path;
|
2001-08-28 07:47:48 -07:00
|
|
|
|
2004-02-22 07:07:51 -08:00
|
|
|
/* Build the table of primitives as a copy of the builtin primitive table.
|
|
|
|
Used for executables generated by ocamlc -output-obj. */
|
|
|
|
extern void caml_build_primitive_table_builtin(void);
|
|
|
|
|
2003-12-15 10:10:51 -08:00
|
|
|
#endif /* CAML_DYNLINK_H */
|