-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for OCaml 4.07 * try esy 0.2.11 * working nicely under 4.07! * Fix code review comments and rebase on master * forgot to regenerate the lockfile * ignore
- Loading branch information
1 parent
0afe4b7
commit fd50b5a
Showing
237 changed files
with
87,370 additions
and
339 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
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
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
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
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,23 +1,45 @@ | ||
(***********************************************************************) | ||
(* *) | ||
(* OCaml *) | ||
(* *) | ||
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *) | ||
(* *) | ||
(* Copyright 1996 Institut National de Recherche en Informatique et *) | ||
(* en Automatique. All rights reserved. This file is distributed *) | ||
(* under the terms of the Q Public License version 1.0. *) | ||
(* *) | ||
(***********************************************************************) | ||
|
||
(* Basic interface to the terminfo database *) | ||
(**************************************************************************) | ||
(* *) | ||
(* OCaml *) | ||
(* *) | ||
(* Xavier Leroy, projet Gallium, INRIA Paris *) | ||
(* *) | ||
(* Copyright 2017 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. *) | ||
(* *) | ||
(**************************************************************************) | ||
|
||
open Printf | ||
|
||
external isatty : out_channel -> bool = "caml_sys_isatty" | ||
external terminfo_rows: out_channel -> int = "caml_terminfo_rows" | ||
|
||
type status = | ||
| Uninitialised | ||
| Bad_term | ||
| Good_term of int | ||
;; | ||
external setup : out_channel -> status = "caml_terminfo_setup";; | ||
external backup : int -> unit = "caml_terminfo_backup";; | ||
external standout : bool -> unit = "caml_terminfo_standout";; | ||
external resume : int -> unit = "caml_terminfo_resume";; | ||
|
||
let num_lines oc = | ||
let rows = terminfo_rows oc in | ||
if rows > 0 then rows else 24 | ||
(* 24 is a reasonable default for an ANSI-style terminal *) | ||
|
||
let setup oc = | ||
let term = try Sys.getenv "TERM" with Not_found -> "" in | ||
(* Same heuristics as in Misc.Color.should_enable_color *) | ||
if term <> "" && term <> "dumb" && isatty oc | ||
then Good_term (num_lines oc) | ||
else Bad_term | ||
|
||
let backup oc n = | ||
if n >= 1 then fprintf oc "\027[%dA%!" n | ||
|
||
let resume oc n = | ||
if n >= 1 then fprintf oc "\027[%dB%!" n | ||
|
||
let standout oc b = | ||
output_string oc (if b then "\027[4m" else "\027[0m"); flush oc |
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,24 @@ | ||
(**************************************************************************) | ||
(* *) | ||
(* OCaml *) | ||
(* *) | ||
(* Damien Doligez, projet Gallium, INRIA Rocquencourt *) | ||
(* *) | ||
(* Copyright 2007 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. *) | ||
(* *) | ||
(**************************************************************************) | ||
|
||
(* Data types for annotations (Stypes.ml) *) | ||
|
||
type call = Tail | Stack | Inline;; | ||
|
||
type ident = | ||
| Iref_internal of Location.t (* defining occurrence *) | ||
| Iref_external | ||
| Idef of Location.t (* scope *) | ||
;; |
Oops, something went wrong.