/* General header for the Gedcom parser.
- Copyright (C) 2001 The Genes Development Team
+ Copyright (C) 2001, 2002 The Genes Development Team
This file is part of the Gedcom parser library.
Contributed by Peter Verthez <Peter.Verthez@advalvas.be>, 2001.
#include <stdio.h>
#include <string.h>
#include <errno.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#include <libintl.h>
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif
-#include "config.h"
+
+#define _(string) gettext(string)
+#define N_(string) (string)
#define MAXGEDCLEVEL 99
#define MAXGEDCLINELEN 255
#define MAXSTDTAGLEN 4
#define MAXGEDCPTRLEN 22
#define GEDCOMTAGOFFSET 257
+#define INTERNAL_ENCODING "UTF8"
+
+#define GEDCOM_INTERNAL 1
-int gedcom_error(char* s, ...);
-int gedcom_warning(char* s, ...);
-int gedcom_message(char* s, ...);
-int gedcom_debug_print(char* s, ...);
+struct tag_struct {
+ char *string;
+ int value;
+};
int gedcom_parse();
int gedcom_lex();
+void gedcom_mem_error(const char *filename, int line);
+
+#define MEMORY_ERROR gedcom_mem_error(__FILE__, __LINE__)
+
extern int line_no;
#endif /* __GEDCOM_INTERNAL_H */