| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
let is_native = true |
| 14 |
|
| 15 |
type linking_error = |
| 16 |
| Undefined_global of string |
| 17 |
| Unavailable_primitive of string |
| 18 |
| Uninitialized_global of string |
| 19 |
|
| 20 |
type error = |
| 21 |
| Not_a_bytecode_file of string |
| 22 |
| Inconsistent_import of string |
| 23 |
| Unavailable_unit of string |
| 24 |
| Unsafe_file |
| 25 |
| Linking_error of string * linking_error |
| 26 |
| Corrupted_interface of string |
| 27 |
| File_not_found of string |
| 28 |
| Cannot_open_dll of string |
| 29 |
| Inconsistent_implementation of string |
| 30 |
|
| 31 |
exception Error of error |
| 32 |
|
| 33 |
let error_message = function |
| 34 |
| Not_a_bytecode_file s -> "Native dynamic link not supported (module "^s^")" |
| 35 |
| _ -> "Native dynamic link not supported" |
| 36 |
|
| 37 |
let loadfile : string -> unit = fun s -> raise (Error (Not_a_bytecode_file s)) |
| 38 |
let loadfile_private = loadfile |
| 39 |
|
| 40 |
let adapt_filename s = s |
| 41 |
|
| 42 |
let init () = () |
| 43 |
let allow_only : string list -> unit = fun _ -> () |
| 44 |
let prohibit : string list -> unit = fun _ -> () |
| 45 |
let default_available_units : unit -> unit = fun _ -> () |
| 46 |
let allow_unsafe_modules : bool -> unit = fun _ -> () |
| 47 |
let add_interfaces : string list -> string list -> unit = fun _ _ -> () |
| 48 |
let add_available_units : (string * Digest.t) list -> unit = fun _ -> () |
| 49 |
let clear_available_units : unit -> unit = fun _ -> () |
| 50 |
let digest_interface : string -> string list -> Digest.t = |
| 51 |
fun _ _ -> failwith "digest_interface" |