[][src]Crate ocaml_sys

Modules

bigarray

Bigarray bindings

Macros

caml_body
caml_local

Initializes and registers the given identifier(s) as a local value with the OCaml runtime.

caml_param

Registers OCaml parameters with the GC

Structs

CamlRootsBlock

The GC root struct. WARNING: You should seriously not mess with this...

caml_custom_table
caml_domain_state
caml_ephe_ref_table
caml_ref_table
custom_fixed_length
custom_operations
longjmp_buffer

Constants

ABSTRACT
CLOSURE
COMPILER

Path to OCaml compiler

CUSTOM
DOUBLE
DOUBLE_ARRAY
EMPTY_LIST

Empty list value

FALSE

OCaml false value

FORWARD
INFIX
LAZY
NO_SCAN
OBJECT
PATH

Path to OCaml libraries

STRING
TRUE

The OCaml true value

UNIT

The OCaml () (unit) value

VERSION

OCaml version (4.10.0, 4.09.1, ...)

Statics

caml_callback_depth

Functions

bp_val

Pointer to the first byte

caml_alloc
caml_alloc_array
caml_alloc_custom
caml_alloc_custom_mem
caml_alloc_final
caml_alloc_small
caml_alloc_string
caml_alloc_tuple
caml_array_bound_error
caml_array_length
caml_callback
caml_callback2
caml_callback2_exn
caml_callback3
caml_callback3_exn
caml_callbackN
caml_callbackN_exn
caml_callback_exn
caml_copy_double
caml_copy_int32
caml_copy_int64
caml_copy_nativeint
caml_copy_string
caml_copy_string_array
caml_enter_blocking_section
caml_failwith
caml_failwith_value
caml_get_public_method
caml_hash_variant
caml_initialize
caml_invalid_argument
caml_invalid_argument_value
caml_is_double_array
caml_leave_blocking_section
caml_main
caml_modify
caml_named_value
caml_raise
caml_raise_constant
caml_raise_end_of_file
caml_raise_not_found
caml_raise_out_of_memory
caml_raise_stack_overflow
caml_raise_sys_blocked_io
caml_raise_sys_error
caml_raise_with_arg
caml_raise_with_args
caml_raise_with_string
caml_raise_zero_divide
caml_register_custom_operations
caml_register_global_root
caml_remove_global_root
caml_shutdown
caml_startup
caml_string_length

Returns size of the string in value in bytes

extract_exception
field

Extract a field from an OCaml value

hd_val
int_val
is_block
is_exception_result
is_long
store_field

Stores the value in the block at offset.

string_val

Extracts a machine ptr to the bytes making up an OCaml string

tag_val
val_int

(((intnat)(x) << 1) + 1)

wosize_val

Type Definitions

Color
Header

An OCaml heap-allocated block header. NB: this is currently unimplemented.

Intnat

OCaml's integer type

Mark
Size

OCaml's size type

Tag

Used to store OCaml value tags, which are used to determine the underlying type of values

Uintnat

OCaml's unsigned integer type

Value

OCaml value type

backtrace_slot