init_date(&def_date);
curr_line_value = line_value;
if (compat_mode(C_NO_REQUIRED_VALUES)
- && !strncmp(curr_line_value, "-", 2)) {
- gedcom_date_error(_("Empty value changed to '-'"));
+ && !strncmp(curr_line_value, VALUE_IF_MISSING, 2)) {
+ gedcom_date_error(_("Empty value changed to '%s'"), VALUE_IF_MISSING);
result = 1;
}
else {
void gedcom_mem_error(const char *filename, int line);
#define MEMORY_ERROR gedcom_mem_error(__FILE__, __LINE__)
+#define VALUE_IF_MISSING "-"
extern int line_no;
extern int init_called;