X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;ds=sidebyside;f=gedcom%2Fcompat.h;h=2dea0e378379829b335c93d3c1d9cc37ef6eb312;hb=HEAD;hp=055b0f0d1a7baf09f675d4f90f67b71600a1c978;hpb=6ac96eea2be7cea48b8cf4232c3be6699078173b;p=gedcom-parse.git diff --git a/gedcom/compat.h b/gedcom/compat.h index 055b0f0..2dea0e3 100644 --- a/gedcom/compat.h +++ b/gedcom/compat.h @@ -49,10 +49,11 @@ typedef enum _COMPAT_RULES { C_NOTE_TOO_LONG, C_NOTE_CONC_SOUR, C_NONSTD_SOUR_TAGS, - C_PAF_DATES, C_NR_OF_RULES } Compat_rule; +extern struct safe_buffer compat_buffer; + void set_compatibility_program(const char* program); void set_compatibility_version(const char* version); void compute_compatibility(); @@ -102,6 +103,12 @@ int compat_check_subm_comm_cont(const char* tag); Gedcom_ctxt compat_subm_comm_cont_start(Gedcom_ctxt parent, char* str); void compat_subm_comm_cont_end(Gedcom_ctxt parent, Gedcom_ctxt self); +/* C_DOUBLE_DATES_4 */ +void compat_date_start(); +int compat_date_check(struct date_value* dv, const char** curr_line); + +int compat_double_date_check(char* year2); + /* C_NOTE_TOO_LONG */ int compat_long_line(int level, int tag); char* compat_long_line_get_prefix(char* str);