Commit a21bdd4f by POTTIER Francois

Removed an undeclared dependency of MenhirSdk on Unix.

parent 592f7443
# Changes
## 2017/06/07
* Removed an undeclared dependency of MenhirSdk on Unix. (Reported and fixed
by Frédéric Bour.)
## 2017/05/09
* Menhir now always places OCaml line number directives in the generated `.ml`
......
......@@ -37,9 +37,13 @@ let read (ic : in_channel) : grammar =
let read (filename : string) : grammar =
let ic = open_in_bin filename in
IO.try_finally
(fun () -> read ic)
(fun () -> close_in_noerr ic)
match read ic with
| x ->
close_in_noerr ic;
x
| exception exn ->
close_in_noerr ic;
raise exn
(* ------------------------------------------------------------------------ *)
......
# This is the list of modules that must go into MenhirSdk.
Keyword
IO
Version
Cmly_format
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