-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make it more interesting with a combination of functors and objects
- Loading branch information
romain
committed
Dec 8, 2011
1 parent
626a4d9
commit 579aae7
Showing
8 changed files
with
323 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
*.*~ | ||
bisect*.out | ||
syncer.native | ||
syncer.byte | ||
|
||
_build/ | ||
coverage/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ocamlbuild -use-ocamlfind test.native | ||
|
||
ocamlbuild -use-ocamlfind \ | ||
-tag 'package(bisect)' \ | ||
-tag 'syntax(camlp4o)' \ | ||
-tag 'syntax(bisect_pp)' \ | ||
syncer.byte | ||
|
||
#ocamlbuild -use-ocamlfind -tag 'package(ocamlviz)' \ | ||
# -tag 'pp(camlp4 pa_o.cmo str.cma pa_ocamlviz.cmo pr_o.cmo)' \ | ||
# profile_test.native | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module type WEAK = sig | ||
type t | ||
val make : unit -> t | ||
val from : string -> int -> int -> t | ||
val reset: t -> unit | ||
val digest: t -> int | ||
val rotate: t -> char -> char -> unit | ||
val update: t -> string -> int -> int -> unit | ||
end | ||
|
||
module type STRONG = sig | ||
type t | ||
val to_hex : t -> string | ||
val file : string -> t | ||
val substring: string -> int -> int -> t | ||
val write : out_channel -> t -> unit | ||
val read : in_channel -> t | ||
end | ||
|
||
module SDigest = (struct | ||
include Digest | ||
let read ic = Io.read_string ic | ||
let write oc t = Io.write_string oc t | ||
|
||
end : STRONG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bisect-report -I _build -html coverage $1 |
Oops, something went wrong.