2016-02-18 07:11:59 -08:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* OCaml *)
|
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique. *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. This file is distributed under the terms of *)
|
|
|
|
(* the GNU Lesser General Public License version 2.1, with the *)
|
|
|
|
(* special exception on linking described in the file LICENSE. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
1995-08-09 08:06:35 -07:00
|
|
|
|
2019-01-27 05:13:03 -08:00
|
|
|
open Misc
|
|
|
|
|
1995-07-02 09:45:21 -07:00
|
|
|
(* Link .cmo files and produce a bytecode executable. *)
|
|
|
|
|
2019-01-27 05:13:03 -08:00
|
|
|
val link : filepath list -> filepath -> unit
|
2014-05-09 05:01:21 -07:00
|
|
|
val reset : unit -> unit
|
1995-07-02 09:45:21 -07:00
|
|
|
|
2019-01-27 05:13:03 -08:00
|
|
|
val check_consistency: filepath -> Cmo_format.compilation_unit -> unit
|
1995-07-02 09:45:21 -07:00
|
|
|
|
2019-01-27 05:13:03 -08:00
|
|
|
val extract_crc_interfaces: unit -> crcs
|
2002-02-08 08:55:44 -08:00
|
|
|
|
1995-07-02 09:45:21 -07:00
|
|
|
type error =
|
2019-01-27 05:13:03 -08:00
|
|
|
| File_not_found of filepath
|
|
|
|
| Not_an_object_file of filepath
|
|
|
|
| Wrong_object_name of filepath
|
|
|
|
| Symbol_error of filepath * Symtable.error
|
|
|
|
| Inconsistent_import of modname * filepath * filepath
|
1995-07-02 09:45:21 -07:00
|
|
|
| Custom_runtime
|
2019-01-27 05:13:03 -08:00
|
|
|
| File_exists of filepath
|
|
|
|
| Cannot_open_dll of filepath
|
2020-05-20 20:37:09 -07:00
|
|
|
| Required_module_unavailable of modname * modname
|
2019-03-22 07:19:53 -07:00
|
|
|
| Camlheader of string * filepath
|
1995-07-02 09:45:21 -07:00
|
|
|
|
|
|
|
exception Error of error
|
|
|
|
|
2000-03-06 14:12:09 -08:00
|
|
|
open Format
|
|
|
|
|
|
|
|
val report_error: formatter -> error -> unit
|