From fd6e9eab0e4489bcc7d7c0a0897218be74852641 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sun, 8 Sep 2002 19:10:56 +0000 Subject: [PATCH] Moved gedcom_error etc to gedcom.h Add function to generate memory error. --- gedcom/gedcom_internal.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gedcom/gedcom_internal.h b/gedcom/gedcom_internal.h index abd8091..5a199dd 100644 --- a/gedcom/gedcom_internal.h +++ b/gedcom/gedcom_internal.h @@ -28,13 +28,13 @@ #include #include #include -#ifdef WITH_DMALLOC -#include -#endif #ifdef HAVE_CONFIG_H #include #endif #include +#ifdef WITH_DMALLOC +#include +#endif #define _(string) gettext(string) #define N_(string) (string) @@ -54,13 +54,12 @@ 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(char *filename, int line); + +#define MEMORY_ERROR gedcom_mem_error(__FILE__, __LINE__) + extern int line_no; #endif /* __GEDCOM_INTERNAL_H */ -- 2.30.2