From: Peter Verthez Date: Sun, 5 Jan 2003 17:47:03 +0000 (+0000) Subject: Definition of MAKELINKFUNC. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=d2d823fd4fe80162765029e5bc29f9b4f6f968f5;p=gedcom-parse.git Definition of MAKELINKFUNC. --- diff --git a/gom/family.c b/gom/family.c index 8389569..9375b1f 100644 --- a/gom/family.c +++ b/gom/family.c @@ -45,6 +45,7 @@ DEFINE_DESTROYFUNC(family, gom_first_family) DEFINE_ADDFUNC(family, XREF_FAM) DEFINE_DELETEFUNC(family) DEFINE_GETXREFFUNC(family, XREF_FAM) +DEFINE_MAKELINKFUNC(family, XREF_FAM) DEFINE_REC_CB(family, fam_start) DEFINE_XREF_CB(family, fam_husb_start, husband, individual) diff --git a/gom/individual.c b/gom/individual.c index 103ad31..33c4c6c 100644 --- a/gom/individual.c +++ b/gom/individual.c @@ -47,6 +47,7 @@ DEFINE_DESTROYFUNC(individual, gom_first_individual) DEFINE_ADDFUNC(individual, XREF_INDI) DEFINE_DELETEFUNC(individual) DEFINE_GETXREFFUNC(individual, XREF_INDI) +DEFINE_MAKELINKFUNC(individual, XREF_INDI) DEFINE_REC_CB(individual, indi_start) DEFINE_STRING_CB(individual, indi_resn_start, restriction_notice) diff --git a/gom/multimedia.c b/gom/multimedia.c index 38ffa3f..1b1f923 100644 --- a/gom/multimedia.c +++ b/gom/multimedia.c @@ -39,6 +39,7 @@ DEFINE_DESTROYFUNC(multimedia, gom_first_multimedia) DEFINE_ADDFUNC(multimedia, XREF_OBJE) DEFINE_DELETEFUNC(multimedia) DEFINE_GETXREFFUNC(multimedia, XREF_OBJE) +DEFINE_MAKELINKFUNC(multimedia, XREF_OBJE) DEFINE_REC_CB(multimedia, obje_start) DEFINE_STRING_CB(multimedia, obje_form_start, form) diff --git a/gom/note.c b/gom/note.c index 3c8bc69..fbe253f 100644 --- a/gom/note.c +++ b/gom/note.c @@ -56,6 +56,7 @@ DEFINE_DESTROYFUNC(note, gom_first_note) DEFINE_ADDFUNC(note, XREF_NOTE) DEFINE_DELETEFUNC(note) DEFINE_GETXREFFUNC(note, XREF_NOTE) +DEFINE_MAKELINKFUNC(note, XREF_NOTE) DEFINE_STRING_END_REC_CB(note, note_end, text) diff --git a/gom/repository.c b/gom/repository.c index 9d383fa..2d070c6 100644 --- a/gom/repository.c +++ b/gom/repository.c @@ -40,6 +40,7 @@ DEFINE_DESTROYFUNC(repository, gom_first_repository) DEFINE_ADDFUNC(repository, XREF_REPO) DEFINE_DELETEFUNC(repository) DEFINE_GETXREFFUNC(repository, XREF_REPO) +DEFINE_MAKELINKFUNC(repository, XREF_REPO) DEFINE_REC_CB(repository, repo_start) DEFINE_STRING_CB(repository, repo_name_start, name) diff --git a/gom/source.c b/gom/source.c index c13acb3..fc46d03 100644 --- a/gom/source.c +++ b/gom/source.c @@ -43,6 +43,7 @@ DEFINE_DESTROYFUNC(source, gom_first_source) DEFINE_ADDFUNC(source, XREF_SOUR) DEFINE_DELETEFUNC(source) DEFINE_GETXREFFUNC(source, XREF_SOUR) +DEFINE_MAKELINKFUNC(source, XREF_SOUR) DEFINE_REC_CB(source, sour_start) DEFINE_NULL_CB(source, sour_data_start) diff --git a/gom/submission.c b/gom/submission.c index 3ecee29..7e5260f 100644 --- a/gom/submission.c +++ b/gom/submission.c @@ -32,6 +32,8 @@ struct submission* gom_submission = NULL; +DEFINE_MAKELINKFUNC(submission, XREF_SUBN) + DEFINE_REC_CB(submission, subn_start) DEFINE_XREF_CB(submission, subn_subm_start, submitter, submitter) DEFINE_STRING_CB(submission, subn_famf_start, family_file) diff --git a/gom/submitter.c b/gom/submitter.c index 29de511..bb2ef3e 100644 --- a/gom/submitter.c +++ b/gom/submitter.c @@ -39,6 +39,7 @@ DEFINE_DESTROYFUNC(submitter, gom_first_submitter) DEFINE_ADDFUNC(submitter, XREF_SUBM) DEFINE_DELETEFUNC(submitter) DEFINE_GETXREFFUNC(submitter, XREF_SUBM) +DEFINE_MAKELINKFUNC(submitter, XREF_SUBM) DEFINE_REC_CB(submitter, subm_start) DEFINE_STRING_CB(submitter, subm_name_start, name)