26 lines
1.1 KiB
OCaml
26 lines
1.1 KiB
OCaml
(***********************************************************************)
|
|
(* *)
|
|
(* Caml Special Light *)
|
|
(* *)
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
(* *)
|
|
(* Copyright 1995 Institut National de Recherche en Informatique et *)
|
|
(* Automatique. Distributed only by permission. *)
|
|
(* *)
|
|
(***********************************************************************)
|
|
|
|
(* $Id$ *)
|
|
|
|
(* Operations on internal representations of values *)
|
|
|
|
type t
|
|
|
|
external repr : 'a -> t = "%identity"
|
|
external magic : 'a -> 'b = "%identity"
|
|
external is_block : t -> bool = "obj_is_block"
|
|
external tag : t -> int = "obj_tag"
|
|
external size : t -> int = "%obj_size"
|
|
external field : t -> int -> t = "%obj_field"
|
|
external set_field : t -> int -> t -> unit = "%obj_set_field"
|
|
external new_block : int -> int -> t = "obj_block"
|