1
- (** Bundled by ocaml_pack 05/31-16 :04 *)
1
+ (** Bundled by ocaml_pack 05/31-17 :04 *)
2
2
module Literals : sig
3
3
#1 "literals.mli"
4
4
(* Copyright (C) 2015-2016 Bloomberg Finance L.P.
@@ -2356,8 +2356,8 @@ module Lam_current_unit : sig
2356
2356
2357
2357
2358
2358
2359
- val set_file : string -> unit
2360
- val get_file : unit -> string
2359
+ val set_current_file : string -> unit
2360
+ val get_current_file : unit -> string
2361
2361
val get_module_name : unit -> string
2362
2362
2363
2363
val iset_debug_file : string -> unit
@@ -2402,8 +2402,8 @@ end = struct
2402
2402
let file = ref ""
2403
2403
let debug_file = ref ""
2404
2404
2405
- let set_file f = file := f
2406
- let get_file () = !file
2405
+ let set_current_file f = file := f
2406
+ let get_current_file () = !file
2407
2407
let get_module_name () =
2408
2408
Filename.chop_extension (String.uncapitalize !file)
2409
2409
@@ -6150,7 +6150,7 @@ let dump env ext lam =
6150
6150
Printlambda.seriaize env
6151
6151
(Ext_filename.chop_extension
6152
6152
~loc:__LOC__
6153
- (Lam_current_unit.get_file ()) ^
6153
+ (Lam_current_unit.get_current_file ()) ^
6154
6154
(Printf.sprintf ".%02d%s.lam" !log_counter ext)
6155
6155
) lam;
6156
6156
lam
@@ -7041,7 +7041,7 @@ let calculate_used_idents
7041
7041
begin match Hashtbl.find ident_free_vars id with
7042
7042
| exception Not_found ->
7043
7043
Ext_log.err __LOC__ "%s/%d when compiling %s"
7044
- id.name id.stamp (Lam_current_unit.get_file ());
7044
+ id.name id.stamp (Lam_current_unit.get_current_file ());
7045
7045
assert false
7046
7046
| e -> e
7047
7047
end
@@ -13067,7 +13067,7 @@ let find_cmj file =
13067
13067
| exception _
13068
13068
->
13069
13069
Ext_log.warn __LOC__
13070
- "@[%s corrupted in database, when looking %s while compiling %s please update @]" file target (Lam_current_unit.get_file ()) ;
13070
+ "@[%s corrupted in database, when looking %s while compiling %s please update @]" file target (Lam_current_unit.get_current_file ()) ;
13071
13071
Js_cmj_format.no_pure_dummy; (* FIXME *)
13072
13072
| v -> v
13073
13073
end
@@ -15777,7 +15777,7 @@ let query (prim : Lam_compile_env.primitive_description)
15777
15777
| _ ->
15778
15778
Ext_log.err __LOC__
15779
15779
"JS.unsafe_js_expr is applied to an non literal string in %s"
15780
- (Lam_current_unit.get_file ())
15780
+ (Lam_current_unit.get_current_file ())
15781
15781
;
15782
15782
assert false
15783
15783
end
@@ -15788,7 +15788,7 @@ let query (prim : Lam_compile_env.primitive_description)
15788
15788
| _ ->
15789
15789
Ext_log.err __LOC__
15790
15790
"JS.unsafe_js_expr is applied to an non literal string in %s"
15791
- (Lam_current_unit.get_file ())
15791
+ (Lam_current_unit.get_current_file ())
15792
15792
;
15793
15793
assert false
15794
15794
end
@@ -15848,7 +15848,7 @@ let query (prim : Lam_compile_env.primitive_description)
15848
15848
15849
15849
let comment = "Missing primitve" in
15850
15850
Ext_log.warn __LOC__ "%s: %s when compiling %s\n" comment prim_name
15851
- (Lam_current_unit.get_file ()) ;
15851
+ (Lam_current_unit.get_current_file ()) ;
15852
15852
E.not_implemented prim_name
15853
15853
(*we dont use [throw] here, since [throw] is an statement
15854
15854
so we wrap in IIFE
@@ -24773,7 +24773,7 @@ let dump name (prog : J.program) =
24773
24773
begin
24774
24774
incr log_counter ;
24775
24775
Ext_pervasives.with_file_as_chan
24776
- (Ext_filename.chop_extension ~loc:__LOC__ (Lam_current_unit.get_file ()) ^
24776
+ (Ext_filename.chop_extension ~loc:__LOC__ (Lam_current_unit.get_current_file ()) ^
24777
24777
(Printf.sprintf ".%02d.%s.jsx" !log_counter name)
24778
24778
) (fun chan -> Js_dump.dump_program prog chan )
24779
24779
end in
@@ -25260,7 +25260,7 @@ let lambda_as_module
25260
25260
(output_prefix : string)
25261
25261
(lam : Lambda.lambda) =
25262
25262
begin
25263
- Lam_current_unit.set_file filename ;
25263
+ Lam_current_unit.set_current_file filename ;
25264
25264
Lam_current_unit.iset_debug_file "tuple_alloc.ml";
25265
25265
Ext_pervasives.with_file_as_chan
25266
25266
(Js_config.get_output_file filename)
0 commit comments