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/genind.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/genind.h')
-rw-r--r-- | Build/source/texk/makeindexk/genind.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Build/source/texk/makeindexk/genind.h b/Build/source/texk/makeindexk/genind.h index 445f52d7ae9..76235b066fc 100644 --- a/Build/source/texk/makeindexk/genind.h +++ b/Build/source/texk/makeindexk/genind.h @@ -25,7 +25,19 @@ * */ -#define IND_ERROR(F, D) { \ +#define IND_ERROR(F) { \ + if (idx_dot) { \ + fprintf(ilg_fp, "\n"); \ + idx_dot = FALSE; \ + } \ + fprintf(ilg_fp, \ + "## Warning (input = %s, line = %d; output = %s, line = %d):\n -- ", \ + curr->fn, curr->lc, ind_fn, ind_lc+1); \ + fprintf(ilg_fp, F); \ + ind_ec++; \ +} + +#define IND_ERROR1(F, D) { \ if (idx_dot) { \ fprintf(ilg_fp, "\n"); \ idx_dot = FALSE; \ |