X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;ds=sidebyside;f=gom%2Fplace.c;h=779ea87881591a1c558d9fd06df7efe53aeb7840;hb=866835ac8928d7e40919c2ca59799cb37023856f;hp=371e2e311dc84055c647ddc1b14bb5192e021cc3;hpb=327069289a45ed1e91d8bfc07d7d89cfbad057d6;p=gedcom-parse.git diff --git a/gom/place.c b/gom/place.c index 371e2e3..779ea87 100644 --- a/gom/place.c +++ b/gom/place.c @@ -50,7 +50,8 @@ Gedcom_ctxt sub_place_start(_ELT_PARAMS_) free(place); } else { - switch (ctxt->ctxt_type) { + int type = ctxt_type(ctxt); + switch (type) { case ELT_SUB_FAM_EVT: case ELT_SUB_FAM_EVT_EVEN: case ELT_SUB_INDIV_ATTR: @@ -61,7 +62,7 @@ Gedcom_ctxt sub_place_start(_ELT_PARAMS_) case ELT_SUB_INDIV_EVEN: ADDFUNC2_NOLIST(event,place)(ctxt, place); break; default: - UNEXPECTED_CONTEXT(ctxt->ctxt_type); + UNEXPECTED_CONTEXT(type); } result = MAKE_GOM_CTXT(elt, place, place); } @@ -72,7 +73,7 @@ Gedcom_ctxt sub_place_start(_ELT_PARAMS_) } DEFINE_SUB_MAKEFUNC(place) -DEFINE_SUB_ADDFUNC(place) +DEFINE_SUB_SETFUNC(place) DEFINE_SUB_DELETEFUNC(place) DEFINE_STRING_CB(place, sub_place_form_start, place_hierarchy)