From f99a197e11b83f0d0df989629d62f53392b50f4e Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Wed, 20 Aug 2014 07:48:33 +0000 Subject: texk/web2c/omegafonts: Bug fix from Akira git-svn-id: svn://tug.org/texlive/trunk@34988 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/omegafonts/ChangeLog | 4 ++++ Build/source/texk/web2c/omegafonts/char_routines.c | 15 ++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'Build/source/texk') 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 + + * char_routines.c: Move '#define check_range' to the top-level. + 2014-08-19 Peter Breitenlohner * 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") -- cgit v1.2.3