X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fsource_event.c;h=a7756c38968e59c95a03584f03b52599f09a80c3;hb=60162324857b1e8d84b8346d99f8b7dce07d0d40;hp=6e353b962b587548095f716020b522be011b3e2c;hpb=327069289a45ed1e91d8bfc07d7d89cfbad057d6;p=gedcom-parse.git diff --git a/gom/source_event.c b/gom/source_event.c index 6e353b9..a7756c3 100644 --- a/gom/source_event.c +++ b/gom/source_event.c @@ -47,11 +47,12 @@ Gedcom_ctxt sub_sour_even_start(_ELT_PARAMS_) free(evt); } else { - switch (ctxt->ctxt_type) { + int type = ctxt_type(ctxt); + switch (type) { case ELT_SOUR_DATA: ADDFUNC2(source,source_event)(ctxt, evt); break; default: - UNEXPECTED_CONTEXT(ctxt->ctxt_type); + UNEXPECTED_CONTEXT(type); } result = MAKE_GOM_CTXT(elt, source_event, evt); } @@ -62,6 +63,10 @@ Gedcom_ctxt sub_sour_even_start(_ELT_PARAMS_) } DEFINE_SUB_MAKEFUNC(source_event) +DEFINE_SUB_ADDFUNC(source_event) +DEFINE_SUB_FINDFUNC(source_event) +DEFINE_SUB_REMOVEFUNC(source_event) +DEFINE_SUB_MOVEFUNC(source_event) DEFINE_DATE_CB(source_event, sub_sour_even_date_start, date_period) DEFINE_STRING_CB(source_event, sub_sour_even_plac_start, jurisdiction)