summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-08-20 07:48:33 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-08-20 07:48:33 +0000
commitf99a197e11b83f0d0df989629d62f53392b50f4e (patch)
tree1163e6ce2cbccd7508fdad80c88a7cc0db0c1434 /Build/source/texk/web2c
parent5cf1c9c9f9281b98e7307afa93bb2839f91e109f (diff)
texk/web2c/omegafonts: Bug fix from Akira
git-svn-id: svn://tug.org/texlive/trunk@34988 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r--Build/source/texk/web2c/omegafonts/ChangeLog4
-rw-r--r--Build/source/texk/web2c/omegafonts/char_routines.c15
2 files changed, 12 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/omegafonts/ChangeLog b/Build/source/texk/web2c/omegafonts/ChangeLog
index 43691a1880f..a4deb9b61cf 100644
--- a/Build/source/texk/web2c/omegafonts/ChangeLog
+++ b/Build/source/texk/web2c/omegafonts/ChangeLog
@@ -1,3 +1,7 @@
+2014-08-20 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * char_routines.c: Move '#define check_range' to the top-level.
+
2014-08-19 Peter Breitenlohner <peb@mppmu.mpg.de>
* char_routines.c, ligkern_routines.c: More OFM checking.
diff --git a/Build/source/texk/web2c/omegafonts/char_routines.c b/Build/source/texk/web2c/omegafonts/char_routines.c
index 0601a72002e..75d370f27d0 100644
--- a/Build/source/texk/web2c/omegafonts/char_routines.c
+++ b/Build/source/texk/web2c/omegafonts/char_routines.c
@@ -349,6 +349,14 @@ doublecheck_existence(unsigned g, const_string extra, const_string fmt)
static void print_packet(unsigned char *, unsigned);
+#define check_range(ndx, mx, name) \
+ if (entry->index_indices[ndx] >= mx) { \
+ fprintf(stderr, "\n%s index for character \"%x is too large;\n" \
+ "so I reset it to zero.\n", name, c); \
+ entry->index_indices[ndx] = 0; \
+ changed = TRUE; \
+ }
+
void
print_characters(boolean read_ovf)
{
@@ -370,13 +378,6 @@ print_characters(boolean read_ovf)
print_character_repeat(c, copies);
else
print_character(c);
-#define check_range(ndx, mx, name) \
- if (entry->index_indices[ndx] >= mx) { \
- fprintf(stderr, "\n%s index for character \"%x is too large;\n" \
- "so I reset it to zero.\n", name, c); \
- entry->index_indices[ndx] = 0; \
- changed = TRUE; \
- }
check_range(C_WD, nw, "Width")
check_range(C_HT, nh, "Height")
check_range(C_DP, nd, "Depth")