diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-15 15:18:07 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-15 15:18:07 +0000 |
commit | 62b7efaec2d75a03ab390b68dc70c53a6521c2f2 (patch) | |
tree | 1df939f23cca49ca310c7280e4332dc681b80332 /Build/source/texk/makeindexk/mkind.h | |
parent | a13fa3342001a13e250113815da70344a009380e (diff) |
avoid compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@13759 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/makeindexk/mkind.h')
-rw-r--r-- | Build/source/texk/makeindexk/mkind.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/Build/source/texk/makeindexk/mkind.h b/Build/source/texk/makeindexk/mkind.h index 714b923754c..bff29ff099c 100644 --- a/Build/source/texk/makeindexk/mkind.h +++ b/Build/source/texk/makeindexk/mkind.h @@ -253,7 +253,13 @@ #define STREQ(A, B) (strcmp(A, B) == 0) #define STRNEQ(A, B) (strcmp(A, B) != 0) -#define MESSAGE(F, S) { \ +#define MESSAGE(F) { \ + if (verbose) \ + fprintf(stderr, F); \ + fprintf(ilg_fp, F); \ +} + +#define MESSAGE1(F, S) { \ if (verbose) \ fprintf(stderr, F, S); \ fprintf(ilg_fp, F, S); \ @@ -263,7 +269,17 @@ #undef FATAL #endif -#define FATAL(F, S) { \ +#define FATAL(F) { \ + fprintf(stderr, F); \ + fprintf(stderr, USAGE, pgm_fn); \ + EXIT(1); \ +} + +#if USE_KPATHSEA /* kpathsea defines a different FATAL1 */ +#undef FATAL1 +#endif + +#define FATAL1(F, S) { \ fprintf(stderr, F, S); \ fprintf(stderr, USAGE, pgm_fn); \ EXIT(1); \ @@ -348,8 +364,8 @@ ensuing. #endif #define PUT_VERSION { \ - MESSAGE("This is %s, ", pgm_fn); \ - MESSAGE("%s.\n", VERSION); \ + MESSAGE1("This is %s, ", pgm_fn); \ + MESSAGE1("%s.\n", VERSION); \ need_version = FALSE; \ } |