From 763066641768f4bb735307bc95d7bfc87b499ce2 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sat, 1 Feb 2003 17:03:19 +0000 Subject: [PATCH] Use of function gedcom_set_compat_options. --- t/output/compat-lifelines.ref | 4 ++-- t/output/write_gom_compat-lifelines.ref | 2 +- t/src/standalone.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/t/output/compat-lifelines.ref b/t/output/compat-lifelines.ref index 87d834f..0e229cf 100644 --- a/t/output/compat-lifelines.ref +++ b/t/output/compat-lifelines.ref @@ -6,7 +6,7 @@ WARNING: Warning on line 2: Enabling compatibility with 'Lifelines' Source context 1001 in parent 1 == 1 DEST (310) ANY (ctxt is 1, conversion failures: 0) == 1 DATE (306) 1 JUL 1997 (ctxt is 1, conversion failures: 0) -WARNING: Warning on line 5: Header change time lost in the compatibility +== 1 TIME (387) 17:43 (ctxt is 1, conversion failures: 0) WARNING: Warning on line 5: Adding link to submitter record with xref '@__COMPAT__SUBM__@' == 1 SUBM (382) @__COMPAT__SUBM__@ (ctxt is 1, conversion failures: 0) == 1 GEDC (326) (null) (ctxt is 1, conversion failures: 0) @@ -109,7 +109,7 @@ WARNING: Warning on line 2: Enabling compatibility with 'Lifelines' Source context 1001 in parent 1 == 1 DEST (310) ANY (ctxt is 1, conversion failures: 0) == 1 DATE (306) 1 JUL 1997 (ctxt is 1, conversion failures: 0) -WARNING: Warning on line 5: Header change time lost in the compatibility +== 1 TIME (387) 17:43 (ctxt is 1, conversion failures: 0) WARNING: Warning on line 5: Adding link to submitter record with xref '@__COMPAT__SUBM__@' == 1 SUBM (382) @__COMPAT__SUBM__@ (ctxt is 1, conversion failures: 0) == 1 GEDC (326) (null) (ctxt is 1, conversion failures: 0) diff --git a/t/output/write_gom_compat-lifelines.ref b/t/output/write_gom_compat-lifelines.ref index a32f9f1..ad97676 100644 --- a/t/output/write_gom_compat-lifelines.ref +++ b/t/output/write_gom_compat-lifelines.ref @@ -1,5 +1,5 @@ WARNING: Warning on line 2: Enabling compatibility with 'Lifelines' -WARNING: Warning on line 5: Header change time lost in the compatibility +WARNING: Warning on line 5: Header change time '17:43' lost in the compatibility (out of context) WARNING: Warning on line 5: Adding link to submitter record with xref '@__COMPAT__SUBM__@' WARNING: Warning on line 9: Empty value changed to '-' WARNING: Warning on line 9: Putting date in 'phrase' member diff --git a/t/src/standalone.c b/t/src/standalone.c index 76d8f14..887da0e 100644 --- a/t/src/standalone.c +++ b/t/src/standalone.c @@ -323,6 +323,7 @@ int main(int argc, char* argv[]) setlocale(LC_ALL, ""); gedcom_set_debug_level(debug_level, NULL); gedcom_set_compat_handling(compat_enabled); + gedcom_set_compat_options(COMPAT_ALLOW_OUT_OF_CONTEXT); gedcom_set_error_handling(mech); gedcom_set_message_handler(gedcom_message_handler); gedcom_set_default_callback(default_cb); -- 2.30.2