RE: [Gedcom-parse-devel] Re: Gedcom-parse
Status: Beta
Brought to you by:
verthezp
From: Geert V. <Gee...@ad...> - 2002-01-02 11:39:42
|
>===== Original Message From Peter Verthez <Pet...@ad...> ===== >Geert Vantienen wrote: >> >> Hello Peter, >> >> In the callbacks you now pass the tag as a char*, >> is it possible to pass them as enum value as they >> are defined in the gedcom.h file ? > >No problem, but then you'll need both, because if I just pass >e.g. ELT_SUB_INDIV_GEN, then you won't know which tag it really >was. > >Or did you mean passing them as TAG_BIRT, TAG_DEAT, ... ? Those >are not defined in gedcom.h, but in the header generated by >YACC. But maybe that would even be better. I was talking about TAG_DEAT, ... they were not defined in gedcom.h ? oops, I thought they were ... I'll see whether >I can move these to gedcom.h. But then also, you'll need the >original char* value to, at least for the user-defined tags. That is not a problem ... Thanks, Geert |