From: Peter Verthez Date: Sun, 8 Sep 2002 19:10:56 +0000 (+0000) Subject: Moved gedcom_error etc to gedcom.h X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=fd6e9eab0e4489bcc7d7c0a0897218be74852641;p=gedcom-parse.git Moved gedcom_error etc to gedcom.h Add function to generate memory error. --- 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 */