* src/base/ftobjs.c (ft_validator_run): disabling function, it is

buggy by design, so it will always return -1
This commit is contained in:
David Turner 2006-08-16 09:24:32 +00:00
parent 9fbfc6af07
commit 2b21a932f1
2 changed files with 10 additions and 10 deletions

View File

@ -3,6 +3,9 @@
* src/cid/cidgload.c (cid_slot_load_glyph),
src/truetype/ttgload.c (tt_prepare_zone): removing compiler warnings
* src/base/ftobjs.c (ft_validator_run): disabling function, it is
buggy by design, so it will always return -1
2006-08-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* modules.cfg (BASE_EXTENSIONS): Compile in ftgxval.c by default to

View File

@ -78,11 +78,8 @@
FT_BASE_DEF( FT_Int )
ft_validator_run( FT_Validator valid )
{
int result;
result = ft_setjmp( valid->jump_buffer );
return result;
/* this function is so buggy, none should be calling it */
return -1;
}
@ -3721,7 +3718,7 @@
/* Close all modules in the library */
#if 1
/* XXX Modules are removed in the reversed order so that */
/* type42 module is removed before truetype module. This */
/* type42 module is removed before truetype module. This */
/* avoids double free in some occasions. It is a hack. */
while ( library->num_modules > 0 )
FT_Remove_Module( library,
@ -3861,7 +3858,7 @@
#endif /* FT_CONFIG_OPTION_OLD_INTERNALS */
FT_EXPORT_DEF( FT_Error )
FT_Get_SubGlyph_Info( FT_GlyphSlot glyph,
FT_UInt sub_index,
@ -3872,14 +3869,14 @@
FT_Matrix *p_transform )
{
FT_Error error = FT_Err_Invalid_Argument;
if ( glyph != NULL &&
if ( glyph != NULL &&
glyph->format == FT_GLYPH_FORMAT_COMPOSITE &&
sub_index < glyph->num_subglyphs )
{
FT_SubGlyph subg = glyph->subglyphs + sub_index;
*p_index = subg->index;
*p_flags = subg->flags;