X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom.h;h=450ecdf985887a15b9bda5627b80a85e1d2621a2;hb=e9437eaf0195f6b397d55d0a4205f47afea0cd71;hp=621155b174430deb519eb1da36cf6aa5f5a209c8;hpb=be41e74e82065afc92849a2ce5a1c51f69ded908;p=gedcom-parse.git diff --git a/gedcom.h b/gedcom.h index 621155b..450ecdf 100644 --- a/gedcom.h +++ b/gedcom.h @@ -1,22 +1,48 @@ +/* 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 -#define MAXGEDCOMLEVEL 99 +#define MAXGEDCLEVEL 99 +#define MAXGEDCLINELEN 256 +#define MAXGEDCTAGLEN 31 #define MAXSTDTAGLENGTH 4 #define GEDCOMTAGOFFSET 257 /* Error handling mechanisms */ typedef enum _MECH { - FAIL_PARSE, - IGNORE_RECORD, - IGNORE_LINE + IMMED_FAIL, + DEFER_FAIL, + 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 */