Release 0.3
[gedcom-parse.git] / gedcom.h
index 621155b174430deb519eb1da36cf6aa5f5a209c8..2dc43b6e25ab1737d592ada11af0743ad4ab55b9 100644 (file)
--- a/gedcom.h
+++ b/gedcom.h
@@ -3,20 +3,27 @@
 #include <stdarg.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 
-#define MAXGEDCOMLEVEL 99
+#define MAXGEDCLEVEL 99
+#define MAXGEDCLINELEN 256
+#define MAXGEDCTAGLEN 31
 #define MAXSTDTAGLENGTH 4
 #define GEDCOMTAGOFFSET 257
 
 /* Error handling mechanisms */
 typedef enum _MECH {
-  FAIL_PARSE,
-  IGNORE_RECORD,
-  IGNORE_LINE
+  IMMED_FAIL,
+  DEFER_FAIL,
+  IGNORE_ERRORS
 } MECHANISM;
 
 int        gedcom_error(char* s, ...);
+int        gedcom_warning(char* s, ...);
+int        gedcom_debug_print(char* s, ...);
 void       gedcom_enable_debug();
 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;