-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
475 additions
and
157 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,16 @@ | ||
1,/exn_handler/ { | ||
p | ||
} | ||
|
||
/action_pending/ { | ||
s|.*|\t/* ... */| p | ||
} | ||
|
||
|
||
/backtrace_pos/, /backtrace_buffer/ { | ||
p | ||
} | ||
|
||
/caml_domain_state/ { | ||
s|.*|\t\/* ... */\n\0| p | ||
} |
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
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,9 @@ | ||
rootdir:=.. | ||
src:=notrace.ml | ||
ocflags:=-g | ||
bin:=notrace.exe | ||
cmm:=camlNotrace__all_somes_327 camlNotrace__fun_347 | ||
dump:=camlNotrace__all_somes_327 camlNotrace__fun_347 | ||
ocamlrunparam=b | ||
|
||
include ../Makefile.mk |
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,24 @@ | ||
module Array = struct | ||
let exists2 p a1 a2 = | ||
let n = Array.length a1 in | ||
if Array.length a2 <> n then invalid_arg "Misc.Stdlib.Array.exists2"; | ||
let rec loop i = | ||
if i = n then false | ||
else if p (Array.unsafe_get a1 i) (Array.unsafe_get a2 i) then true | ||
else loop (succ i) in | ||
loop 0 | ||
|
||
let for_alli p a = | ||
let n = Array.length a in | ||
let rec loop i = | ||
if i = n then true | ||
else if p i (Array.unsafe_get a i) then loop (succ i) | ||
else false in | ||
loop 0 | ||
|
||
let all_somes a = | ||
try | ||
Some (Array.map (function None -> raise_notrace Exit | Some x -> x) a) | ||
with | ||
| Exit -> None | ||
end |