dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Let init_called be global (used from encoding.c).
[gedcom-parse.git]
/
gom
/
gom.c
diff --git
a/gom/gom.c
b/gom/gom.c
index 025541d5389ae0a8cef9437b30deb46bab6608ec..cf1876b4c7360a9b450a1b1aa2262b61a1c854c4 100644
(file)
--- a/
gom/gom.c
+++ b/
gom/gom.c
@@
-69,7
+69,7
@@
void gom_cleanup()
user_recs_cleanup();
}
user_recs_cleanup();
}
-int gom_parse_file(char* file_name)
+int gom_parse_file(c
onst c
har* file_name)
{
gedcom_set_default_callback(gom_default_callback);
header_subscribe();
{
gedcom_set_default_callback(gom_default_callback);
header_subscribe();
@@
-126,7
+126,8
@@
void destroy_gom_ctxt(Gom_ctxt ctxt)
SAFE_FREE(ctxt);
}
SAFE_FREE(ctxt);
}
-void gom_cast_error(char* file, int line, OBJ_TYPE expected, OBJ_TYPE found)
+void gom_cast_error(const char* file, int line,
+ OBJ_TYPE expected, OBJ_TYPE found)
{
fprintf(stderr,
"Wrong gom ctxt cast at %s, line %d: expected %d, found %d\n",
{
fprintf(stderr,
"Wrong gom ctxt cast at %s, line %d: expected %d, found %d\n",
@@
-134,25
+135,25
@@
void gom_cast_error(char* file, int line, OBJ_TYPE expected, OBJ_TYPE found)
abort();
}
abort();
}
-void gom_mem_error(char *filename, int line)
+void gom_mem_error(c
onst c
har *filename, int line)
{
gedcom_error(_("Could not allocate memory at %s, %d"), filename, line);
}
{
gedcom_error(_("Could not allocate memory at %s, %d"), filename, line);
}
-void gom_unexpected_context(char* file, int line, OBJ_TYPE found)
+void gom_unexpected_context(c
onst c
har* file, int line, OBJ_TYPE found)
{
gedcom_warning(_("Internal error: Unexpected context at %s, line %d: %d"),
file, line, found);
}
{
gedcom_warning(_("Internal error: Unexpected context at %s, line %d: %d"),
file, line, found);
}
-void gom_no_context(char* file, int line)
+void gom_no_context(c
onst c
har* file, int line)
{
gedcom_warning(_("Internal error: No context at %s, line %d"),
file, line);
}
{
gedcom_warning(_("Internal error: No context at %s, line %d"),
file, line);
}
-void gom_default_callback (Gedcom_elt elt, Gedcom_ctxt parent, int level,
char* tag,
- char* raw_value, int parsed_tag)
+void gom_default_callback (Gedcom_elt elt, Gedcom_ctxt parent, int level,
+ char*
tag, char*
raw_value, int parsed_tag)
{
gedcom_warning(_("Data loss in import: \"%d %s %s\""),
level, tag, raw_value);
{
gedcom_warning(_("Data loss in import: \"%d %s %s\""),
level, tag, raw_value);
@@
-171,7
+172,7
@@
void def_elt_end(Gedcom_elt elt, Gedcom_ctxt parent, Gedcom_ctxt self,
destroy_gom_ctxt(ctxt);
}
destroy_gom_ctxt(ctxt);
}
-void set_xref_type(struct xref_value* xr, char *str)
+void set_xref_type(struct xref_value* xr, c
onst c
har *str)
{
if (!strcasecmp(str, "FAM"))
xr->type = XREF_FAM;
{
if (!strcasecmp(str, "FAM"))
xr->type = XREF_FAM;