diff options
author | Werner Lemberg <wl@gnu.org> | 2013-03-14 10:27:35 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2013-03-14 10:27:35 +0100 |
commit | 059bc335ce42220b222763379e89d0cbf2b949eb (patch) | |
tree | 664afa6d13d54d6bd82e431d2b114a31e0b91a5b /src/sfnt/ttmtx.c | |
parent | c58ce3beee198cff82269a482cd3f6d4c7d43511 (diff) | |
download | freetype2-059bc335ce42220b222763379e89d0cbf2b949eb.tar.gz |
*/*: Use `FT_THROW'.
This is essentially a mechanical conversion, adding inclusion of
`FT_INTERNAL_DEBUG_H' where necessary, and providing the macros for
stand-alone compiling modes of the rasterizer modules.
To convert the remaining occurrences of FT_Err_XXX and friends it is
necessary to rewrite the code. Note, however, that it doesn't harm
if some cases are not handled since FT_THROW is a no-op.
Diffstat (limited to 'src/sfnt/ttmtx.c')
-rw-r--r-- | src/sfnt/ttmtx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sfnt/ttmtx.c b/src/sfnt/ttmtx.c index 8f7b2a93b..f95b39b05 100644 --- a/src/sfnt/ttmtx.c +++ b/src/sfnt/ttmtx.c @@ -4,7 +4,7 @@ /* */ /* Load the metrics tables common to TTF and OTF fonts (body). */ /* */ -/* Copyright 2006-2009, 2011-2012 by */ +/* Copyright 2006-2009, 2011-2013 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -167,8 +167,8 @@ /* Adobe simply ignores this problem. So we shall do the same. */ #if 0 - error = vertical ? SFNT_Err_Invalid_Vert_Metrics - : SFNT_Err_Invalid_Horiz_Metrics; + error = vertical ? FT_THROW( Invalid_Vert_Metrics ) + : FT_THROW( Invalid_Horiz_Metrics ); goto Exit; #else num_shorts = 0; |