Commit a21bdd4f authored by POTTIER Francois's avatar POTTIER Francois

Removed an undeclared dependency of MenhirSdk on Unix.

parent 592f7443
# Changes # Changes
## 2017/06/07
* Removed an undeclared dependency of MenhirSdk on Unix. (Reported and fixed
by Frédéric Bour.)
## 2017/05/09 ## 2017/05/09
* Menhir now always places OCaml line number directives in the generated `.ml` * Menhir now always places OCaml line number directives in the generated `.ml`
......
...@@ -37,9 +37,13 @@ let read (ic : in_channel) : grammar = ...@@ -37,9 +37,13 @@ let read (ic : in_channel) : grammar =
let read (filename : string) : grammar = let read (filename : string) : grammar =
let ic = open_in_bin filename in let ic = open_in_bin filename in
IO.try_finally match read ic with
(fun () -> read ic) | x ->
(fun () -> close_in_noerr ic) close_in_noerr ic;
x
| exception exn ->
close_in_noerr ic;
raise exn
(* ------------------------------------------------------------------------ *) (* ------------------------------------------------------------------------ *)
......
# This is the list of modules that must go into MenhirSdk. # This is the list of modules that must go into MenhirSdk.
Keyword Keyword
IO
Version Version
Cmly_format Cmly_format
Cmly_api Cmly_api
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment