|
@@ -2,7 +2,7 @@ open Globals
|
|
open Common
|
|
open Common
|
|
open ExtString
|
|
open ExtString
|
|
|
|
|
|
-class hxb_library file_path = object(self)
|
|
|
|
|
|
+class hxb_library file_path hxb_times = object(self)
|
|
inherit abstract_hxb_lib
|
|
inherit abstract_hxb_lib
|
|
val zip = lazy (Zip.open_in file_path)
|
|
val zip = lazy (Zip.open_in file_path)
|
|
|
|
|
|
@@ -19,7 +19,7 @@ class hxb_library file_path = object(self)
|
|
let close = Timer.timer ["hxblib";"read"] in
|
|
let close = Timer.timer ["hxblib";"read"] in
|
|
List.iter (function
|
|
List.iter (function
|
|
| ({ Zip.filename = "StringPool.hxb" | "StringPool.macro.hxb" as filename} as entry) ->
|
|
| ({ Zip.filename = "StringPool.hxb" | "StringPool.macro.hxb" as filename} as entry) ->
|
|
- let reader = new HxbReader.hxb_reader (["hxb";"internal"],"StringPool") (HxbReader.create_hxb_reader_stats()) None in
|
|
|
|
|
|
+ let reader = new HxbReader.hxb_reader (["hxb";"internal"],"StringPool") (HxbReader.create_hxb_reader_stats()) None hxb_times in
|
|
let zip = Lazy.force zip in
|
|
let zip = Lazy.force zip in
|
|
let data = Bytes.unsafe_of_string (Zip.read_entry zip entry) in
|
|
let data = Bytes.unsafe_of_string (Zip.read_entry zip entry) in
|
|
ignore(reader#read (new HxbReaderApi.hxb_reader_api_null) data STR);
|
|
ignore(reader#read (new HxbReaderApi.hxb_reader_api_null) data STR);
|
|
@@ -74,4 +74,4 @@ let create_hxb_lib com file_path =
|
|
with Not_found ->
|
|
with Not_found ->
|
|
failwith ("hxb lib " ^ file_path ^ " not found")
|
|
failwith ("hxb lib " ^ file_path ^ " not found")
|
|
in
|
|
in
|
|
- new hxb_library file
|
|
|
|
|
|
+ new hxb_library file (Common.defined com Define.HxbTimes)
|