X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fpersonal_name.c;h=bff72bd87a9cf562c6e0599a656c1f2107813a75;hb=372bfab5751df76a1eb4025ec4546b38d369053a;hp=3b6bb8ea4c657e38b2e557aa5c5dd6e7507c7a7b;hpb=763e8737b5118c5f23dca84a3290c2d805bbefe6;p=gedcom-parse.git diff --git a/gom/personal_name.c b/gom/personal_name.c index 3b6bb8e..bff72bd 100644 --- a/gom/personal_name.c +++ b/gom/personal_name.c @@ -91,6 +91,18 @@ void name_subscribe() def_elt_end); } +void UNREFALLFUNC(personal_name)(struct personal_name* obj) +{ + if (obj) { + struct personal_name* runner; + for (runner = obj; runner; runner = runner->next) { + UNREFALLFUNC(source_citation)(runner->citation); + UNREFALLFUNC(note_sub)(runner->note); + UNREFALLFUNC(user_data)(runner->extra); + } + } +} + void CLEANFUNC(personal_name)(struct personal_name* name) { if (name) { @@ -120,22 +132,23 @@ int write_names(Gedcom_write_hndl hndl, int parent, parent, obj->name); if (obj->prefix) result |= gedcom_write_element_str(hndl, ELT_SUB_PERS_NAME_NPFX, 0, - parent, obj->prefix); + ELT_SUB_PERS_NAME, obj->prefix); if (obj->given) result |= gedcom_write_element_str(hndl, ELT_SUB_PERS_NAME_GIVN, 0, - parent, obj->given); + ELT_SUB_PERS_NAME, obj->given); if (obj->nickname) result |= gedcom_write_element_str(hndl, ELT_SUB_PERS_NAME_NICK, 0, - parent, obj->nickname); + ELT_SUB_PERS_NAME, obj->nickname); if (obj->surname_prefix) result |= gedcom_write_element_str(hndl, ELT_SUB_PERS_NAME_SPFX, 0, - parent, obj->surname_prefix); + ELT_SUB_PERS_NAME, + obj->surname_prefix); if (obj->surname) result |= gedcom_write_element_str(hndl, ELT_SUB_PERS_NAME_SURN, 0, - parent, obj->surname); + ELT_SUB_PERS_NAME, obj->surname); if (obj->suffix) result |= gedcom_write_element_str(hndl, ELT_SUB_PERS_NAME_NSFX, 0, - parent, obj->suffix); + ELT_SUB_PERS_NAME, obj->suffix); if (obj->citation) result |= write_citations(hndl, ELT_SUB_PERS_NAME, obj->citation); if (obj->note)