-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and switch to janestreet style Signed-off-by: Rudi Grinberg <[email protected]> <!-- ps-id: 2f84c3c4-e878-47f5-9177-32373bd8d671 -->
- Loading branch information
Showing
9 changed files
with
143 additions
and
154 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 |
---|---|---|
@@ -1,20 +1,3 @@ | ||
version=0.19.0 | ||
profile=conventional | ||
break-separators=before | ||
dock-collection-brackets=false | ||
break-sequences=true | ||
doc-comments=before | ||
field-space=loose | ||
let-and=sparse | ||
sequence-style=terminator | ||
type-decl=sparse | ||
wrap-comments=true | ||
if-then-else=k-r | ||
let-and=sparse | ||
space-around-records | ||
space-around-lists | ||
space-around-arrays | ||
cases-exp-indent=2 | ||
break-cases=all | ||
indicate-nested-or-patterns=unsafe-no | ||
parse-docstrings=true | ||
version=0.26.0 | ||
profile=janestreet | ||
ocaml-version=4.08.0 |
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
let%bench "exec true with Spawn.spawn" = | ||
Spawn.spawn () ~prog:"/bin/true" ~argv:[ "true" ] |> Unix.waitpid [] | ||
;; | ||
|
||
let%bench "exec true with Caml.Unix.create_process" = | ||
Unix.create_process "/bin/true" [| "true" |] Unix.stdin Unix.stdout | ||
Unix.stderr | ||
Unix.create_process "/bin/true" [| "true" |] Unix.stdin Unix.stdout Unix.stderr | ||
|> Unix.waitpid [] | ||
;; |
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
let () = | ||
Sys.readdir "." |> Array.to_list |> List.sort String.compare | ||
|> List.iter print_endline | ||
Sys.readdir "." |> Array.to_list |> List.sort String.compare |> List.iter print_endline | ||
;; |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
external getpgid : int -> int = "test_getpgid" | ||
|
||
let main = | ||
if not Sys.win32 then | ||
if not Sys.win32 | ||
then ( | ||
let pid = Unix.getpid () in | ||
let pgid = getpgid pid in | ||
if pid <> pgid then failwith "pgid and pid not equal" | ||
if pid <> pgid then failwith "pgid and pid not equal") | ||
;; |
Oops, something went wrong.