X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=src%2Fmisc.ml;h=743dda8d7f996cb0f80c189a4ef6c7ee26736785;hp=f8156b0d22191f8cfe0da534b6b0458a61c2630c;hb=aade6d9ba2e2b65e021de8a1c3a2d3874aa5742e;hpb=b00bff88c7902e828804c06b7f9dc55222fdc84e diff --git a/src/misc.ml b/src/misc.ml index f8156b0..743dda8 100644 --- a/src/misc.ml +++ b/src/misc.ml @@ -13,10 +13,6 @@ (* *) (***********************************************************************) -(* - Time-stamp: -*) - (** Various generic signatures and generic module and functor definitions *) INCLUDE "utils.ml" @@ -29,7 +25,7 @@ struct type t = data T.t let create = T.create let add h v = T.add h v v - let find = T.find + let find h v = T.find h v let remove = T.remove let find_all = T.find_all let clear = T.clear @@ -49,3 +45,5 @@ struct let x1, y1 = p1 and x2, y2 = p2 in X.equal x1 x2 && Y.equal y1 y2 end + +external int_of_bool : bool -> int = "%identity"