Moved some parts to the external header.
[gedcom-parse.git] / gedcom.h
index 450ecdf985887a15b9bda5627b80a85e1d2621a2..1250340b07e166134d0e3b674f7ada88ec1a80c6 100644 (file)
--- a/gedcom.h
+++ b/gedcom.h
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
-
-#define MAXGEDCLEVEL 99
-#define MAXGEDCLINELEN 256
-#define MAXGEDCTAGLEN 31
-#define MAXSTDTAGLENGTH 4
+#ifdef DMALLOC
+#include <dmalloc.h>
+#endif
+
+#define MAXGEDCLEVEL    99
+#define MAXGEDCLINELEN  255
+#define MAXGEDCTAGLEN   31
+#define MAXSTDTAGLEN    4
+#define MAXGEDCPTRLEN   22
 #define GEDCOMTAGOFFSET 257
 
-/* Error handling mechanisms */
-typedef enum _MECH {
-  IMMED_FAIL,
-  DEFER_FAIL,
-  IGNORE_ERRORS
-} MECHANISM;
-
-
 int        gedcom_error(char* s, ...);
 int        gedcom_warning(char* s, ...);
 int        gedcom_message(char* s, ...);
 int        gedcom_debug_print(char* s, ...);
-void       gedcom_set_debug_level(int level);
-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;