reset_mess_buffer();
res = safe_buf_vappend(s, ap);
va_end(ap);
- safe_buf_append("\n");
if (msg_handler)
(*msg_handler)(MESSAGE, mess_buffer);
return res;
va_start(ap, s);
res = safe_buf_vappend(s, ap);
va_end(ap);
- safe_buf_append("\n");
if (msg_handler)
(*msg_handler)(WARNING, mess_buffer);
va_start(ap, s);
res = safe_buf_vappend(s, ap);
va_end(ap);
- safe_buf_append("\n");
if (msg_handler)
(*msg_handler)(ERROR, mess_buffer);
printf(" -3 Run the test parse 3 times instead of once\n");
}
-Gedcom_ctxt header_start(int level, char *xref, char *tag)
+Gedcom_ctxt header_start(int level, Gedcom_val xref, char *tag)
{
output(1, "Header start\n");
return (Gedcom_ctxt)0;
char family_xreftags[100][255];
int family_nr = 0;
-Gedcom_ctxt family_start(int level, char *xref, char *tag)
+Gedcom_ctxt family_start(int level, Gedcom_val xref, char *tag)
{
- output(1, "Family start, xref is %s\n", xref);
- strcpy(family_xreftags[family_nr], xref);
+ output(1, "Family start, xref is %s\n", GEDCOM_STRING(xref));
+ strcpy(family_xreftags[family_nr], GEDCOM_STRING(xref));
return (Gedcom_ctxt)(family_nr++);
}
output(1, "Family end, xref is %s\n", family_xreftags[(int)self]);
}
-Gedcom_ctxt submit_start(int level, char *xref, char *tag)
+Gedcom_ctxt submit_start(int level, Gedcom_val xref, char *tag)
{
- output(1, "Submitter, xref is %s\n", xref);
+ output(1, "Submitter, xref is %s\n", GEDCOM_STRING(xref));
return (Gedcom_ctxt)10000;
}
fprintf(stderr, "WARNING: ");
else if (type == ERROR)
fprintf(stderr, "ERROR: ");
- fprintf(stderr, msg);
+ fprintf(stderr, "%s\n", msg);
}
int main(int argc, char* argv[])