$(H)echo " OCAMLOPT $<"
$(H)$(OCAMLOPT) $(CPKGS) -linkpkg -o $@ $(CCMXS) $(MAINCMXS) matitac.ml
-matitadaemon: matitadaemon.ml $(WLIB_DEPS) $(CMOS) $(MAINCMOS)
+matitadaemon: matitadaemon.ml $(WLIB_DEPS) $(CCMOS) $(MAINCMOS)
$(H)echo " OCAMLC $<"
- $(H)$(OCAMLC) $(WPKGS) -linkpkg -o $@ $(CMOS) $(MAINCMOS) matitadaemon.ml
-matitadaemon.opt: matitadaemon.ml $(WLIBX_DEPS) $(CMXS) $(MAINCMXS)
+ $(H)$(OCAMLC) $(WPKGS) -linkpkg -o $@ $(CCMOS) $(MAINCMOS) matitadaemon.ml
+matitadaemon.opt: matitadaemon.ml $(WLIBX_DEPS) $(CCMXS) $(MAINCMXS)
$(H)echo " OCAMLOPT $<"
- $(H)$(OCAMLOPT) $(PKGS) -linkpkg -o $@ $(CMXS) $(MAINCMXS) matitadaemon.ml
+ $(H)$(OCAMLOPT) $(WPKGS) -linkpkg -o $@ $(CCMXS) $(MAINCMXS) matitadaemon.ml
rottener: rottener.ml $(CLIB_DEPS) $(CCMOS) $(MAINCMOS)
$(H)echo " OCAMLC $<"
let utf8_length = Netconversion.ustring_length `Enc_utf8
+let utf8_parsed_text s floc =
+ let start, stop = HExtlib.loc_of_floc floc in
+ let len = stop - start in
+ let res = Netconversion.ustring_sub `Enc_utf8 start len s in
+ res, String.length res
+
(*** from matitaScript.ml ***)
(* let only_dust_RE = Pcre.regexp "^(\\s|\n|%%[^\n]*\n)*$" *)
| GrafiteAst.Comment (loc, _) -> loc in
let _,lend = HExtlib.loc_of_floc floc in
- let parsed_text, parsed_text_len =
- MatitaGtkMisc.utf8_parsed_text unparsed_text (HExtlib.floc_of_loc (0,lend)) in
+ let parsed_text, _parsed_text_len =
+ utf8_parsed_text unparsed_text (HExtlib.floc_of_loc (0,lend)) in
let byte_parsed_text_len = String.length parsed_text in
let unparsed_txt' =
String.sub unparsed_text byte_parsed_text_len
let status = ref (new MatitaEngine.status "cic:/matita");;
let history = ref [!status];;
+let sequent_size = ref 40;;
let include_paths = ref [];;
| Stack.Open i ->
let meta = List.assoc i metasenv in
snd (ApplyTransformation.ntxt_of_cic_sequent
- ~metasenv ~subst ~map_unicode_to_tex:false 80 s (i,meta))
+ ~metasenv ~subst ~map_unicode_to_tex:false !sequent_size s (i,meta))
| Stack.Closed _ -> "This goal has already been closed."
in
let render_sequent is_loc acc depth tag (pos,sw) =