summaryrefslogtreecommitdiff
path: root/Build/source/texk/makeindexk/scanid.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-15 15:18:07 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-15 15:18:07 +0000
commit62b7efaec2d75a03ab390b68dc70c53a6521c2f2 (patch)
tree1df939f23cca49ca310c7280e4332dc681b80332 /Build/source/texk/makeindexk/scanid.h
parenta13fa3342001a13e250113815da70344a009380e (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/scanid.h')
-rw-r--r--Build/source/texk/makeindexk/scanid.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/Build/source/texk/makeindexk/scanid.h b/Build/source/texk/makeindexk/scanid.h
index 62a9de32758..43824068b9d 100644
--- a/Build/source/texk/makeindexk/scanid.h
+++ b/Build/source/texk/makeindexk/scanid.h
@@ -97,11 +97,22 @@
}
#define NULL_RTN { \
- IDX_ERROR("Illegal null field.\n", NULL); \
+ IDX_ERROR("Illegal null field.\n"); \
return (FALSE); \
}
-#define IDX_ERROR(F, D) { \
+#define IDX_ERROR(F) { \
+ if (idx_dot) { \
+ fprintf(ilg_fp, "\n"); \
+ idx_dot = FALSE; \
+ } \
+ fprintf(ilg_fp, "!! Input index error (file = %s, line = %d):\n -- ", \
+ idx_fn, idx_lc); \
+ fprintf(ilg_fp, F); \
+ idx_ec++; \
+}
+
+#define IDX_ERROR1(F, D) { \
if (idx_dot) { \
fprintf(ilg_fp, "\n"); \
idx_dot = FALSE; \