zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ftvalid.h File Reference
#include <ft2build.h>
#include <FT_CONFIG_STANDARD_LIBRARY_H>

Go to the source code of this file.

Classes

struct  FT_ValidatorRec_
 

Macros

#define FT_INVALID(_prefix, _error)   FT_INVALID_( _prefix, _error )
 
#define FT_INVALID_(_prefix, _error)   ft_validator_error( valid, _prefix ## _error )
 
#define FT_INVALID_DATA   FT_INVALID( FT_ERR_PREFIX, Invalid_Table )
 
#define FT_INVALID_FORMAT   FT_INVALID( FT_ERR_PREFIX, Invalid_Table )
 
#define FT_INVALID_GLYPH_ID   FT_INVALID( FT_ERR_PREFIX, Invalid_Glyph_Index )
 
#define FT_INVALID_OFFSET   FT_INVALID( FT_ERR_PREFIX, Invalid_Offset )
 
#define FT_INVALID_TOO_SHORT   FT_INVALID( FT_ERR_PREFIX, Invalid_Table )
 
#define FT_VALIDATOR(x)   ((FT_Validator)( x ))
 

Typedefs

typedef enum FT_ValidationLevel_ FT_ValidationLevel
 
typedef typedefFT_BEGIN_HEADER
struct FT_ValidatorRec_
volatile * 
FT_Validator
 
typedef struct FT_ValidatorRec_ FT_ValidatorRec
 

Enumerations

enum  FT_ValidationLevel_ { FT_VALIDATE_DEFAULT = 0, FT_VALIDATE_TIGHT, FT_VALIDATE_PARANOID }
 

Functions

 ft_validator_error (FT_Validator valid, FT_Error error)
 
 ft_validator_init (FT_Validator valid, const FT_Byte *base, const FT_Byte *limit, FT_ValidationLevel level)
 
 ft_validator_run (FT_Validator valid)
 

Macro Definition Documentation

#define FT_INVALID (   _prefix,
  _error 
)    FT_INVALID_( _prefix, _error )

Definition at line 120 of file ftvalid.h.

#define FT_INVALID_ (   _prefix,
  _error 
)    ft_validator_error( valid, _prefix ## _error )

Definition at line 121 of file ftvalid.h.

#define FT_INVALID_DATA   FT_INVALID( FT_ERR_PREFIX, Invalid_Table )
#define FT_INVALID_TOO_SHORT   FT_INVALID( FT_ERR_PREFIX, Invalid_Table )

Definition at line 125 of file ftvalid.h.

Referenced by gxv_EntryTable_validate(), and gxv_XEntryTable_validate().

#define FT_VALIDATOR (   x)    ((FT_Validator)( x ))

Definition at line 92 of file ftvalid.h.

Referenced by tt_face_build_cmaps().

Typedef Documentation

typedef typedefFT_BEGIN_HEADER struct FT_ValidatorRec_ volatile* FT_Validator

Definition at line 42 of file ftvalid.h.

Enumeration Type Documentation

Enumerator
FT_VALIDATE_DEFAULT 
FT_VALIDATE_TIGHT 
FT_VALIDATE_PARANOID 

Definition at line 70 of file ftvalid.h.

Function Documentation

ft_validator_error ( FT_Validator  valid,
FT_Error  error 
)

Definition at line 94 of file ftobjs.c.

References error, ft_jmp_buf, and ft_longjmp.

ft_validator_init ( FT_Validator  valid,
const FT_Byte base,
const FT_Byte limit,
FT_ValidationLevel  level 
)

Definition at line 71 of file ftobjs.c.

References FT_Err_Ok.

Referenced by classic_kern_validate(), otv_validate(), and tt_face_build_cmaps().

ft_validator_run ( FT_Validator  valid)

Definition at line 84 of file ftobjs.c.

References FT_UNUSED.