free(editor);
}
-void
+static void
ml_mathml_editor_log_callback(int level, const char* msg, void* user_data)
{
ml_Editor* ml_editor = (ml_Editor*) user_data;
callback2(ml_editor->callback, Val_int(level), copy_string(msg));
}
+value
+ml_mathml_editor_get_default_dictionary_path(value unit)
+{
+ CAMLparam1(unit);
+ CAMLreturn(copy_string(c_mathml_editor_get_default_dictionary_path()));
+}
+
+value
+ml_mathml_editor_get_default_mathml_stylesheet_path(value unit)
+{
+ CAMLparam1(unit);
+ CAMLreturn(copy_string(c_mathml_editor_get_default_mathml_stylesheet_path()));
+}
+
+value
+ml_mathml_editor_get_default_tex_stylesheet_path(value unit)
+{
+ CAMLparam1(unit);
+ CAMLreturn(copy_string(c_mathml_editor_get_default_tex_stylesheet_path()));
+}
+
value
ml_mathml_editor_new(value dictionary,
value tml_mml,