Let init_called be global (used from encoding.c).
[gedcom-parse.git] / gedcom / gedcom_internal.h
index abd80913302d2cbaae819e6245979adc9f7e754f..7804a419a98042423f917c3c3ce028371be9d853 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
-#ifdef WITH_DMALLOC
-#include <dmalloc.h>
-#endif
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 #include <libintl.h>
+#ifdef WITH_DMALLOC
+#include <dmalloc.h>
+#endif
 
 #define _(string) gettext(string)
 #define N_(string) (string)
@@ -54,13 +54,13 @@ struct tag_struct {
   int value;
 };
 
-int        gedcom_error(char* s, ...);
-int        gedcom_warning(char* s, ...);
-int        gedcom_message(char* s, ...);
-int        gedcom_debug_print(char* s, ...);
-
 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;
+extern int init_called;
 #endif /* __GEDCOM_INTERNAL_H */