summaryrefslogtreecommitdiff
path: root/driver/compile.ml
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2003-05-14 09:48:20 +0000
committerJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2003-05-14 09:48:20 +0000
commit4d7abfbc16022eab8af392bd3e6d76cf4773f2c2 (patch)
treee883430c77d37c7c933652bca86be8dcc3697272 /driver/compile.ml
parent6ef3a9c5a2ca32049682798e1e6f4521ea196836 (diff)
downloadocaml-multimatch.tar.gz
merge from HEADmultimatch
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/multimatch@5563 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'driver/compile.ml')
-rw-r--r--driver/compile.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/compile.ml b/driver/compile.ml
index 6be13ba40b..99bc318756 100644
--- a/driver/compile.ml
+++ b/driver/compile.ml
@@ -38,6 +38,8 @@ let init_path () =
(* Return the initial environment in which compilation proceeds. *)
let initial_env () =
+ init_path();
+ Ident.reinit();
try
if !Clflags.nopervasives
then Env.initial
@@ -48,7 +50,6 @@ let initial_env () =
(* Compile a .mli file *)
let interface ppf sourcefile =
- init_path();
let prefixname = chop_extension_if_any sourcefile in
let modulename = String.capitalize(Filename.basename prefixname) in
let inputfile = Pparse.preprocess sourcefile in
@@ -76,7 +77,6 @@ let print_if ppf flag printer arg =
let (++) x f = f x
let implementation ppf sourcefile =
- init_path();
let prefixname = chop_extension_if_any sourcefile in
let modulename = String.capitalize(Filename.basename prefixname) in
let inputfile = Pparse.preprocess sourcefile in