shithub: freetype+ttf2subf

Download patch

ref: 53ac64e39f6836d26f9244fe6846161a4659757f
parent: ffa033b1bc91a10275f3e01da3971f24cc58a4b5
author: Werner Lemberg <[email protected]>
date: Sat Aug 20 01:33:09 EDT 2005

* src/otvalid/otvmod.c (otv_validate): Use ft_validator_run instead
of ft_setjmp.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-20  Masatake YAMATO  <[email protected]>
+
+	* src/otvalid/otvmod.c (otv_validate): Use ft_validator_run instead
+	of ft_setjmp.
+
 2005-08-19  Werner Lemberg  <[email protected]>
 
 	* src/truetype/ttgload.c (load_truetype_glyph): Fix compiler
--- a/src/otvalid/otvmod.c
+++ b/src/otvalid/otvmod.c
@@ -124,7 +124,7 @@
     if ( base )
     {
       ft_validator_init( &valid, base, base + len_base, FT_VALIDATE_DEFAULT );
-      if ( ft_setjmp( valid.jump_buffer ) == 0 )
+      if ( ft_validator_run( &valid ) == 0 )
         otv_BASE_validate( base, &valid );
       error = valid.error;
       if ( error )
@@ -134,7 +134,7 @@
     if ( gpos )
     {
       ft_validator_init( &valid, gpos, gpos + len_gpos, FT_VALIDATE_DEFAULT );
-      if (ft_setjmp( valid.jump_buffer ) == 0 )
+      if ( ft_validator_run( &valid ) == 0 )
         otv_GPOS_validate( gpos, face->num_glyphs, &valid );
       error = valid.error;
       if ( error )
@@ -144,7 +144,7 @@
     if ( gsub )
     {
       ft_validator_init( &valid, gsub, gsub + len_gsub, FT_VALIDATE_DEFAULT );
-      if ( ft_setjmp( valid.jump_buffer ) == 0 )
+      if ( ft_validator_run( &valid ) == 0 )
         otv_GSUB_validate( gsub, face->num_glyphs, &valid );
       error = valid.error;
       if ( error )
@@ -154,7 +154,7 @@
     if ( gdef )
     {
       ft_validator_init( &valid, gdef, gdef + len_gdef, FT_VALIDATE_DEFAULT );
-      if ( ft_setjmp( valid.jump_buffer ) == 0 )
+      if ( ft_validator_run( &valid ) == 0 )
         otv_GDEF_validate( gdef, gsub, gpos, &valid );
       error = valid.error;
       if ( error )
@@ -164,7 +164,7 @@
     if ( jstf )
     {
       ft_validator_init( &valid, jstf, jstf + len_jstf, FT_VALIDATE_DEFAULT );
-      if ( ft_setjmp( valid.jump_buffer ) == 0 )
+      if ( ft_validator_run( &valid ) == 0 )
         otv_JSTF_validate( jstf, gsub, gpos, face->num_glyphs, &valid );
       error = valid.error;
       if ( error )