Remove hard-coded acess to SXSI for tag operations.
[SXSI/xpathcomp.git] / src / main.ml
index cd3d275..cb7585f 100644 (file)
@@ -33,7 +33,7 @@ let mk_runtime run auto doc arg count print outfile =
 
 
 let main v query_string output =
-  Tag.init (Tree.tag_pool v);
+  Tag.init (Tree.tag_operations v);
   let query =
     time ~msg:"Parsing query" XPath.parse query_string
   in
@@ -95,6 +95,7 @@ let document =
     let g = time ~msg:"Loading grammar" (Grammar.load !Options.input_file) true in
     begin
       ignore(g);
+      Unix.sleep 10; (* Leave monitoring process the time to read the HWM *)
       exit 0
     end
   else if Filename.check_suffix !Options.input_file ".srx"