Added help text; better debug options.
[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
8 #define MAXGEDCLEVEL 99
9 #define MAXGEDCLINELEN 256
10 #define MAXGEDCTAGLEN 31
11 #define MAXSTDTAGLENGTH 4
12 #define GEDCOMTAGOFFSET 257
13
14 /* Error handling mechanisms */
15 typedef enum _MECH {
16   IMMED_FAIL,
17   DEFER_FAIL,
18   IGNORE_ERRORS
19 } MECHANISM;
20
21 int        gedcom_error(char* s, ...);
22 int        gedcom_warning(char* s, ...);
23 int        gedcom_debug_print(char* s, ...);
24 void       gedcom_enable_debug();
25 void       gedcom_set_error_handling(MECHANISM mechanism);
26 void       gedcom_set_compat_handling(int enable_compat);
27 int        gedcom_parse();
28 int        gedcom_lex();
29 extern int line_no;