2016-02-18 07:11:59 -08:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* OCaml *)
|
|
|
|
(* *)
|
|
|
|
(* Luc Maranget, projet Moscova, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 2002 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. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
2002-01-04 02:01:50 -08:00
|
|
|
|
2002-10-28 08:46:50 -08:00
|
|
|
(* Table used for code emission, ie extensible arrays *)
|
|
|
|
type 'a t
|
2002-01-04 02:01:50 -08:00
|
|
|
|
2010-01-22 04:48:24 -08:00
|
|
|
val create : 'a -> 'a t
|
2002-01-04 02:01:50 -08:00
|
|
|
|
2002-10-28 08:46:50 -08:00
|
|
|
val emit : 'a t -> 'a -> unit
|
|
|
|
|
|
|
|
val iter : 'a t -> ('a -> unit) -> unit
|
|
|
|
|
|
|
|
val trim : 'a t -> 'a array
|
|
|
|
|
|
|
|
|
|
|
|
exception Error
|
|
|
|
|
|
|
|
val get : 'a t -> int -> 'a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val size : 'a t -> int
|