gom_cleanup();
}
else {
+ gedcom_set_compat_options(COMPAT_ALLOW_OUT_OF_CONTEXT);
subscribe_all();
}
gom_active = 1;
- gedcom_set_compat_options(0);
return gedcom_parse_file(file_name);
}
level, tag, raw_value);
}
+void gom_mem_error(const char *filename, int line)
+{
+ gedcom_error(_("Could not allocate memory at %s, %d"), filename, line);
+}
+
+void gom_xref_already_in_use(const char *xrefstr)
+{
+ gedcom_error(_("Cross-reference key '%s' is already in use"), xrefstr);
+}
+
+void gom_move_error(const char* type)
+{
+ gedcom_warning(_("Could not move struct of type %s"), type);
+}
+
+void gom_find_error(const char* type)
+{
+ gedcom_warning(_("Could not find struct of type %s in chain"), type);
+}
+
void set_xref_type(struct xref_value* xr, const char *str)
{
if (!strcasecmp(str, "FAM"))