X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom.h;h=82836e84ff9f28568dd9017662bffccc9fed79f0;hb=f4faf7679e0ae7cc5e5cf25c1f070a790f5f4a40;hp=6f35d4eca12285f91fddcc9e112b7653b812b276;hpb=95deed7400e87af12a987af2abf5187ab1ddf9aa;p=gedcom-parse.git diff --git a/gedcom.h b/gedcom.h index 6f35d4e..82836e8 100644 --- a/gedcom.h +++ b/gedcom.h @@ -1,9 +1,12 @@ /* $Id$ */ /* $Name$ */ +#ifndef __GEDCOM_H +#define __GEDCOM_H #include #include #include #include +#include #define MAXGEDCLEVEL 99 #define MAXGEDCLINELEN 256 @@ -18,20 +21,18 @@ typedef enum _MECH { IGNORE_ERRORS } MECHANISM; -/* Basic file encoding */ -typedef enum _ENC { - ONE_BYTE, - TWO_BYTE_HILO, - TWO_BYTE_LOHI -} ENCODING; 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; -extern FILE *gedcom_in; +#endif /* __GEDCOM_H */