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