X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Finterface.h;h=7e4474860211c3e00cdd381c82fdaae80ff68dc8;hb=d831ac6ddba5b5940e0c3a7a1581e57188d84053;hp=db1a048f218b099dee36d795749fb82adc9757e3;hpb=8093e53a57e174b019f07760f5bf815271ceee9b;p=gedcom-parse.git diff --git a/gedcom/interface.h b/gedcom/interface.h index db1a048..7e44748 100644 --- a/gedcom/interface.h +++ b/gedcom/interface.h @@ -1,11 +1,22 @@ -/* This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - - (C) 2001 by The Genes Development Team - Original author: Peter Verthez (Peter.Verthez@advalvas.be) -*/ +/* Header for interface.c + Copyright (C) 2001 The Genes Development Team + This file is part of the Gedcom parser library. + Contributed by Peter Verthez , 2001. + + The Gedcom parser library is free software; you can redistribute it + and/or modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The Gedcom parser library is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the Gedcom parser library; if not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ /* $Id$ */ /* $Name$ */ @@ -24,5 +35,16 @@ Gedcom_ctxt start_element(Gedcom_elt elt, Gedcom_ctxt parent, void end_element(Gedcom_elt elt, Gedcom_ctxt parent, Gedcom_ctxt self, Gedcom_val parsed_value); +extern Gedcom_val_struct val; + +#define GEDCOM_MAKE(VALUE, TYPE, MEMBER) \ + (val.type = TYPE, val.value.MEMBER = VALUE, &val) + +#define GEDCOM_MAKE_STRING(STRING) \ + GEDCOM_MAKE(STRING, GV_CHAR_PTR, string_val) + +#define GEDCOM_MAKE_DATE(DATE) \ + GEDCOM_MAKE(DATE, GV_DATE_VALUE, date_val) + #endif /* __INTERFACE_H */