aboutsummaryrefslogtreecommitdiff
path: root/freetype/src/base/ftgxval.c
diff options
context:
space:
mode:
Diffstat (limited to 'freetype/src/base/ftgxval.c')
-rwxr-xr-x[-rw-r--r--]freetype/src/base/ftgxval.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/freetype/src/base/ftgxval.c b/freetype/src/base/ftgxval.c
index 528b5eab7..e301917d0 100644..100755
--- a/freetype/src/base/ftgxval.c
+++ b/freetype/src/base/ftgxval.c
@@ -4,7 +4,7 @@
/* */
/* FreeType API for validating TrueTyepGX/AAT tables (body). */
/* */
-/* Copyright 2004, 2005, 2006, 2010 by */
+/* Copyright 2004-2006, 2010, 2013 by */
/* Masatake YAMATO, Redhat K.K, */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
@@ -26,6 +26,7 @@
#include <ft2build.h>
+#include <freetype/internal/ftdebug.h>
#include <freetype/internal/ftobjs.h>
#include FT_SERVICE_GX_VALIDATE_H
@@ -44,13 +45,13 @@
if ( !face )
{
- error = FT_Err_Invalid_Face_Handle;
+ error = FT_THROW( Invalid_Face_Handle );
goto Exit;
}
if ( tables == NULL )
{
- error = FT_Err_Invalid_Argument;
+ error = FT_THROW( Invalid_Argument );
goto Exit;
}
@@ -62,7 +63,7 @@
tables,
table_length );
else
- error = FT_Err_Unimplemented_Feature;
+ error = FT_THROW( Unimplemented_Feature );
Exit:
return error;
@@ -96,13 +97,13 @@
if ( !face )
{
- error = FT_Err_Invalid_Face_Handle;
+ error = FT_THROW( Invalid_Face_Handle );
goto Exit;
}
if ( ckern_table == NULL )
{
- error = FT_Err_Invalid_Argument;
+ error = FT_THROW( Invalid_Argument );
goto Exit;
}
@@ -113,7 +114,7 @@
validation_flags,
ckern_table );
else
- error = FT_Err_Unimplemented_Feature;
+ error = FT_THROW( Unimplemented_Feature );
Exit:
return error;