X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fgedcom_internal.h;h=e34318144869dede3c2e6b7870fd1cce6f823ca8;hb=e6cd9cd58e0e23f70e75b140d16354af665d7b43;hp=d4ad4ac53f1c672d89ea7da850f73551b1dd38fc;hpb=58f82d862e7f5c499fe99befb5f4a34bcee474a7;p=gedcom-parse.git diff --git a/gedcom/gedcom_internal.h b/gedcom/gedcom_internal.h index d4ad4ac..e343181 100644 --- a/gedcom/gedcom_internal.h +++ b/gedcom/gedcom_internal.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. * +/* General header for the Gedcom parser. + Copyright (C) 2001, 2002 The Genes Development Team + This file is part of the Gedcom parser library. + Contributed by Peter Verthez , 2001. - (C) 2001 by The Genes Development Team - Original author: Peter Verthez (Peter.Verthez@advalvas.be) -*/ + 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$ */ @@ -17,24 +28,38 @@ #include #include #include +#ifdef HAVE_CONFIG_H +#include +#endif +#include #ifdef WITH_DMALLOC #include #endif +#define _(string) gettext(string) +#define N_(string) (string) + #define MAXGEDCLEVEL 99 #define MAXGEDCLINELEN 255 #define MAXGEDCTAGLEN 31 #define MAXSTDTAGLEN 4 #define MAXGEDCPTRLEN 22 #define GEDCOMTAGOFFSET 257 +#define INTERNAL_ENCODING "UTF8" -int gedcom_error(char* s, ...); -int gedcom_warning(char* s, ...); -int gedcom_message(char* s, ...); -int gedcom_debug_print(char* s, ...); +#define GEDCOM_INTERNAL 1 + +struct tag_struct { + char *string; + int value; +}; int gedcom_parse(); int gedcom_lex(); +void gedcom_mem_error(const char *filename, int line); + +#define MEMORY_ERROR gedcom_mem_error(__FILE__, __LINE__) + extern int line_no; #endif /* __GEDCOM_INTERNAL_H */