X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fgedcom_internal.h;h=7804a419a98042423f917c3c3ce028371be9d853;hb=7868bb322bab2eb2501a77ae5061c98a2b924723;hp=abd80913302d2cbaae819e6245979adc9f7e754f;hpb=8c92a223c34fbd674f26520fb990c64a7b2f9147;p=gedcom-parse.git diff --git a/gedcom/gedcom_internal.h b/gedcom/gedcom_internal.h index abd8091..7804a41 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,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 */