X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fcompat.h;h=03971d1fd2ded377456aa10ee2ed553692e2b34f;hb=d563731845efada15183b9be72061203c4e82105;hp=31e7576e7c080d5eb912f71375a01730873e60a5;hpb=fffe9618ff8a5cfcac207f231b531615dfb0e38f;p=gedcom-parse.git diff --git a/gedcom/compat.h b/gedcom/compat.h index 31e7576..03971d1 100644 --- a/gedcom/compat.h +++ b/gedcom/compat.h @@ -26,15 +26,19 @@ #include "gedcom.h" -extern int compat_at; - -enum _COMPAT { - C_FTREE = 0x01, - C_LIFELINES = 0x02 -}; +typedef enum _COMPAT_RULES { + C_NO_SUBMITTER, + C_INDI_ADDR, + C_NOTE_NO_VALUE, + C_NO_GEDC, + C_NO_CHAR, + C_HEAD_TIME, + C_NO_DOUBLE_AT, + C_NO_REQUIRED_VALUES +} Compat_rule; void set_compatibility(const char* program); -int compat_mode(int flags); +int compat_mode(Compat_rule rule); void compat_generate_submitter_link(Gedcom_ctxt parent); void compat_generate_submitter(); void compat_generate_gedcom(Gedcom_ctxt parent);