X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom.h;h=1250340b07e166134d0e3b674f7ada88ec1a80c6;hb=cba49310f44b2f9511a09e51e324e920d7f5359d;hp=987a382d0676a0039245e0836bd2b40ab39f616f;hpb=a54348309c92f4d7a2dd66b4055122a7be19ca28;p=gedcom-parse.git diff --git a/gedcom.h b/gedcom.h index 987a382..1250340 100644 --- a/gedcom.h +++ b/gedcom.h @@ -1,3 +1,12 @@ +/* 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) +*/ + /* $Id$ */ /* $Name$ */ @@ -8,31 +17,23 @@ #include #include #include - -#define MAXGEDCLEVEL 99 -#define MAXGEDCLINELEN 256 -#define MAXGEDCTAGLEN 31 -#define MAXSTDTAGLENGTH 4 +#ifdef DMALLOC +#include +#endif + +#define MAXGEDCLEVEL 99 +#define MAXGEDCLINELEN 255 +#define MAXGEDCTAGLEN 31 +#define MAXSTDTAGLEN 4 +#define MAXGEDCPTRLEN 22 #define GEDCOMTAGOFFSET 257 -/* Error handling mechanisms */ -typedef enum _MECH { - IMMED_FAIL, - DEFER_FAIL, - IGNORE_ERRORS -} MECHANISM; - - int gedcom_error(char* s, ...); int gedcom_warning(char* s, ...); int gedcom_message(char* s, ...); int gedcom_debug_print(char* s, ...); -void gedcom_set_debug_level(int level); -void gedcom_set_error_handling(MECHANISM mechanism); -void gedcom_set_compat_handling(int enable_compat); int gedcom_parse(); - int gedcom_lex(); extern int line_no;