X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fcompat.h;h=088da5adcfa4337590141232b9b6d8703ee2ba1c;hb=d41803b9c1bcafabf115a188e3b4a489103bbdca;hp=813f7949fd623f2bc9e5ab437ff8a4f1197e2474;hpb=348ff78151b323043b4e0c3e4744427e033639c9;p=gedcom-parse.git diff --git a/gedcom/compat.h b/gedcom/compat.h index 813f794..088da5a 100644 --- a/gedcom/compat.h +++ b/gedcom/compat.h @@ -47,6 +47,8 @@ typedef enum _COMPAT_RULES { C_TAB_CHARACTER, C_SUBM_CTRY, C_NOTE_TOO_LONG, + C_NOTE_CONC_SOUR, + C_NONSTD_SOUR_TAGS, C_NR_OF_RULES } Compat_rule; @@ -103,4 +105,19 @@ int compat_long_line(int level, int tag); char* compat_long_line_get_prefix(char* str); void compat_long_line_finish(Gedcom_ctxt parent, int level); +/* C_NOTE_CONC_SOUR */ +Gedcom_ctxt compat_generate_note_sour_start(Gedcom_ctxt parent, + int level, struct tag_struct ts, + char* pointer); +void compat_generate_note_sour_end(Gedcom_ctxt self); + +/* C_NONSTD_SOUR_TAGS */ +int compat_check_sour_tag(const char* tag, struct safe_buffer* b); +Gedcom_ctxt compat_generate_nonstd_sour_start(Gedcom_ctxt parent, int level, + struct tag_struct ts, + char* value, + struct safe_buffer* b); +void compat_generate_nonstd_sour_end(Gedcom_ctxt parent, Gedcom_ctxt self); +int compat_generate_nonstd_sour_state(); + #endif /* __COMPAT_H */