X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom.h;h=995af0cc00e98f62b6ea5c4544e7cf63ea046b14;hb=6297e01cb9c903ac1ef7eb0bb2fcb8dbddd5cc06;hp=742473c09eba5640ce9b3c9049345a464f8d2097;hpb=d392d5f692337233acaf45d2a1a5158529440c16;p=gedcom-parse.git diff --git a/gedcom.h b/gedcom.h index 742473c..995af0c 100644 --- a/gedcom.h +++ b/gedcom.h @@ -1,11 +1,31 @@ +/* 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$ */ + +#ifndef __GEDCOM_H +#define __GEDCOM_H #include #include #include +#include +#include +#ifdef DMALLOC +#include +#endif -#define MAXGEDCOMLEVEL 99 -#define MAXSTDTAGLENGTH 4 +#define MAXGEDCLEVEL 99 +#define MAXGEDCLINELEN 255 +#define MAXGEDCTAGLEN 31 +#define MAXSTDTAGLEN 4 +#define MAXGEDCPTRLEN 22 #define GEDCOMTAGOFFSET 257 /* Error handling mechanisms */ @@ -15,8 +35,18 @@ typedef enum _MECH { IGNORE_ERRORS } MECHANISM; + int gedcom_error(char* s, ...); -void gedcom_enable_debug(); +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; +#endif /* __GEDCOM_H */