X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fgedcom_internal.h;h=804959a66915500691d8b4d0bf982fb9718e6e91;hb=d2dbc2834cae06a5de0dec22c0e7a530b7dd1589;hp=a8c3044c1d2e85a5c0ed865b49c06687e3c6e676;hpb=d976bbdf8e2fa9991edbe563ff26732a485cbcd0;p=gedcom-parse.git diff --git a/gedcom/gedcom_internal.h b/gedcom/gedcom_internal.h index a8c3044..804959a 100644 --- a/gedcom/gedcom_internal.h +++ b/gedcom/gedcom_internal.h @@ -32,11 +32,8 @@ #include #endif #include -#ifdef WITH_DMALLOC -#include -#endif -#define _(string) gettext(string) +#define _(string) dgettext(PACKAGE, string) #define N_(string) (string) #define MAXGEDCLEVEL 99 @@ -49,7 +46,11 @@ #define GEDCOM_INTERNAL 1 +#ifdef __GNUC__ #define UNUSED __attribute__((unused)) +#else +#define UNUSED +#endif struct tag_struct { char *string; @@ -69,6 +70,7 @@ int gedcom_check_token(const char* str, ParseState state, int check_token); void gedcom_mem_error(const char *filename, int line); #define MEMORY_ERROR gedcom_mem_error(__FILE__, __LINE__) +#define VALUE_IF_MISSING "-" extern int line_no; extern int init_called;