forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ocaml#1166 by not using Path in configurator
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
- Loading branch information
Showing
4 changed files
with
173 additions
and
189 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,36 @@ | ||
(** IO operations *) | ||
|
||
val open_in : ?binary:bool (* default true *) -> Path.t -> in_channel | ||
val open_out : ?binary:bool (* default true *) -> Path.t -> out_channel | ||
|
||
val close_in : in_channel -> unit | ||
val close_out : out_channel -> unit | ||
|
||
val with_file_in : ?binary:bool (* default true *) -> Path.t -> f:(in_channel -> 'a) -> 'a | ||
val with_file_out : ?binary:bool (* default true *) -> Path.t -> f:(out_channel -> 'a) -> 'a | ||
val input_lines : in_channel -> string list | ||
|
||
val with_lexbuf_from_file : Path.t -> f:(Lexing.lexbuf -> 'a) -> 'a | ||
val copy_channels : in_channel -> out_channel -> unit | ||
|
||
val input_lines : in_channel -> string list | ||
val lines_of_file : Path.t -> string list | ||
val read_all : in_channel -> string | ||
|
||
val read_file : ?binary:bool -> Path.t -> string | ||
val write_file : ?binary:bool -> Path.t -> string -> unit | ||
module type S = sig | ||
type path | ||
|
||
val compare_files : Path.t -> Path.t -> Ordering.t | ||
val compare_text_files : Path.t -> Path.t -> Ordering.t | ||
val open_in : ?binary:bool (* default true *) -> path -> in_channel | ||
val open_out : ?binary:bool (* default true *) -> path -> out_channel | ||
|
||
val write_lines : Path.t -> string list -> unit | ||
val with_file_in : ?binary:bool (* default true *) -> path -> f:(in_channel -> 'a) -> 'a | ||
val with_file_out : ?binary:bool (* default true *) -> path -> f:(out_channel -> 'a) -> 'a | ||
|
||
val copy_channels : in_channel -> out_channel -> unit | ||
val with_lexbuf_from_file : path -> f:(Lexing.lexbuf -> 'a) -> 'a | ||
val lines_of_file : path -> string list | ||
|
||
val copy_file : ?chmod:(int -> int) -> src:Path.t -> dst:Path.t -> unit -> unit | ||
val read_file : ?binary:bool -> path -> string | ||
val write_file : ?binary:bool -> path -> string -> unit | ||
|
||
val read_all : in_channel -> string | ||
val compare_files : path -> path -> Ordering.t | ||
val compare_text_files : path -> path -> Ordering.t | ||
|
||
val write_lines : path -> string list -> unit | ||
val copy_file : ?chmod:(int -> int) -> src:path -> dst:path -> unit -> unit | ||
end | ||
|
||
include S with type path = Path.t | ||
|
||
module String_path : S with type path = string |
Oops, something went wrong.