Set GCONV_PATH for make test (to pick up ANSEL encoding module).
[gedcom-parse.git] / gedcom.h
1 /* $Id$ */
2 /* $Name$ */
3 #ifndef __GEDCOM_H
4 #define __GEDCOM_H
5 #include <stdarg.h>
6 #include <stdlib.h>
7 #include <stdio.h>
8 #include <string.h>
9 #include <errno.h>
10
11 #define MAXGEDCLEVEL 99
12 #define MAXGEDCLINELEN 256
13 #define MAXGEDCTAGLEN 31
14 #define MAXSTDTAGLENGTH 4
15 #define GEDCOMTAGOFFSET 257
16
17 /* Error handling mechanisms */
18 typedef enum _MECH {
19   IMMED_FAIL,
20   DEFER_FAIL,
21   IGNORE_ERRORS
22 } MECHANISM;
23
24
25 int        gedcom_error(char* s, ...);
26 int        gedcom_warning(char* s, ...);
27 int        gedcom_message(char* s, ...);
28 int        gedcom_debug_print(char* s, ...);
29 void       gedcom_set_debug_level(int level);
30 void       gedcom_set_error_handling(MECHANISM mechanism);
31 void       gedcom_set_compat_handling(int enable_compat);
32
33 int        gedcom_parse();
34
35 int        gedcom_lex();
36
37 extern int line_no;
38 #endif /* __GEDCOM_H */