Full error handling for tags and subtags...
[gedcom-parse.git] / gedcom.h
1 /* $Id$ */
2 /* $Name$ */
3 #include <stdarg.h>
4 #include <stdlib.h>
5 #include <stdio.h>
6
7 #define MAXGEDCOMLEVEL 99
8 #define MAXSTDTAGLENGTH 4
9 #define GEDCOMTAGOFFSET 257
10
11 /* Error handling mechanisms */
12 typedef enum _MECH {
13   IMMED_FAIL,
14   DEFER_FAIL,
15   IGNORE_ERRORS
16 } MECHANISM;
17
18 int        gedcom_error(char* s, ...);
19 void       gedcom_enable_debug();
20 void       gedcom_set_error_handling(MECHANISM mechanism);
21 int        gedcom_parse();
22 extern int line_no;