X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fsource_event.c;h=a7756c38968e59c95a03584f03b52599f09a80c3;hb=60162324857b1e8d84b8346d99f8b7dce07d0d40;hp=319dbb7f8c0b854d2d2fe9d26bbca7ca709e5633;hpb=bb2090762d3ae9355a04286c33b78d24736b783c;p=gedcom-parse.git diff --git a/gom/source_event.c b/gom/source_event.c index 319dbb7..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); }