summaryrefslogtreecommitdiff
path: root/Build/source/texk/makeindexk/scanid.h
diff options
context:
space:
mode:
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; \