Eneboo - Documentación para desarrolladores
|
00001 00002 #ifndef FTERRCOMPAT_H 00003 #define FTERRCOMPAT_H 00004 00005 #ifdef HAVE_FREETYPE_2_0_3 00006 #include <freetype/internal/tterrors.h> 00007 #else 00008 #define TT_Err_Ok FT_Err_Ok 00009 #define TT_Err_Invalid_Argument FT_Err_Invalid_Argument 00010 #define TT_Err_Invalid_Face_Handle FT_Err_Invalid_Face_Handle 00011 #define TT_Err_Table_Missing FT_Err_Table_Missing 00012 #endif /* HAVE_FREETYPE_2_0_3 */ 00013 00014 /* Compat macros for name changes in FreeType 2.1.0 00015 */ 00016 #if (FREETYPE_MAJOR == 2) && (FREETYPE_MINOR >= 1) 00017 00018 #define FILE_Pos() FT_STREAM_POS() 00019 #define FILE_Seek( position ) FT_STREAM_SEEK( position) 00020 00021 #define ACCESS_Frame( size ) FT_FRAME_ENTER( size ) 00022 #define FORGET_Frame() FT_FRAME_EXIT() 00023 00024 #define GET_Char() FT_GET_CHAR() 00025 #define GET_Byte() FT_GET_BYTE() 00026 #define GET_Short() FT_GET_SHORT() 00027 #define GET_UShort() FT_GET_USHORT() 00028 #define GET_Offset() FT_GET_OFF3() 00029 #define GET_UOffset() FT_GET_UOFF3() 00030 #define GET_Long() FT_GET_LONG() 00031 #define GET_ULong() FT_GET_ULONG() 00032 #define GET_Tag4() FT_GET_TAG4() 00033 00034 #define ALLOC_ARRAY( _pointer_, _count_, _type_ ) \ 00035 FT_SET_ERROR (FT_MEM_ALLOC_ARRAY( _pointer_, _count_, _type_)) 00036 00037 /* FT_MEM_REALLOC macro broken in 2.1.0 */ 00038 #define REALLOC_ARRAY( _pointer_, _old_, _new_, _type_ ) \ 00039 FT_SET_ERROR ( FT_MEM_REALLOC( _pointer_, (_old_) * sizeof ( _type_ ), \ 00040 (_new_) * sizeof ( _type_ ) ) ) 00041 00042 #define ALLOC( _pointer_, _size_ ) FT_ALLOC( _pointer_, _size_ ) 00043 #define FREE( _pointer_ ) FT_FREE( _pointer_ ) 00044 00045 #define MEM_Copy( dest, source, count ) FT_MEM_COPY( dest, source, count ) 00046 00047 #endif /* >= 2.1.0 */ 00048 00049 #endif /* FTERRCOMPAT_H */