* include/freetype/ftconfig.h, src/*/*.c: changed the definition and
uses of the FT_CALLBACK_DEF macro in order to support 16-bit compilers
This commit is contained in:
parent
890f313b37
commit
dee781342b
|
@ -1,3 +1,8 @@
|
|||
2001-06-27 David Turner <david@freetype.org>
|
||||
|
||||
* include/freetype/ftconfig.h, src/*/*.c: changed the definition and
|
||||
uses of the FT_CALLBACK_DEF macro in order to support 16-bit compilers
|
||||
|
||||
2001-06-26 Wolfgang Domröse <porthos.domroese@harz.de>
|
||||
|
||||
* include/freetype/internal/ftstream.h (FT_GET_OFF3_LE): Fix typo.
|
||||
|
|
|
@ -91,8 +91,8 @@
|
|||
/* <Return> */
|
||||
/* The address of newly allocated block. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void* ft_alloc( FT_Memory memory,
|
||||
FT_CALLBACK_DEF(void*)
|
||||
ft_alloc( FT_Memory memory,
|
||||
long size )
|
||||
{
|
||||
FT_UNUSED( memory );
|
||||
|
@ -121,8 +121,8 @@
|
|||
/* <Return> */
|
||||
/* The address of the reallocated memory block. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void* ft_realloc( FT_Memory memory,
|
||||
FT_CALLBACK_DEF(void*)
|
||||
ft_realloc( FT_Memory memory,
|
||||
long cur_size,
|
||||
long new_size,
|
||||
void* block )
|
||||
|
@ -147,8 +147,8 @@
|
|||
/* */
|
||||
/* block :: The address of block in memory to be freed. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void ft_free( FT_Memory memory,
|
||||
FT_CALLBACK_DEF(void)
|
||||
ft_free( FT_Memory memory,
|
||||
void* block )
|
||||
{
|
||||
FT_UNUSED( memory );
|
||||
|
@ -189,8 +189,8 @@
|
|||
/* <Input> */
|
||||
/* stream :: A pointer to the stream object. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void ft_close_stream( FT_Stream stream )
|
||||
FT_CALLBACK_DEF(void)
|
||||
ft_close_stream( FT_Stream stream )
|
||||
{
|
||||
munmap( (MUNMAP_ARG_CAST)stream->descriptor.pointer, stream->size );
|
||||
|
||||
|
|
|
@ -91,8 +91,8 @@
|
|||
/* <Return> */
|
||||
/* The address of newly allocated block. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void* ft_alloc( FT_Memory memory,
|
||||
FT_CALLBACK_DEF(void*)
|
||||
ft_alloc( FT_Memory memory,
|
||||
long size )
|
||||
{
|
||||
FT_UNUSED( memory );
|
||||
|
@ -121,8 +121,8 @@
|
|||
/* <Return> */
|
||||
/* The address of the reallocated memory block. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void* ft_realloc( FT_Memory memory,
|
||||
FT_CALLBACK_DEF(void*)
|
||||
ft_realloc( FT_Memory memory,
|
||||
long cur_size,
|
||||
long new_size,
|
||||
void* block )
|
||||
|
@ -147,8 +147,8 @@
|
|||
/* */
|
||||
/* block :: The address of block in memory to be freed. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void ft_free( FT_Memory memory,
|
||||
FT_CALLBACK_DEF(void)
|
||||
ft_free( FT_Memory memory,
|
||||
void* block )
|
||||
{
|
||||
FT_UNUSED( memory );
|
||||
|
@ -189,8 +189,8 @@
|
|||
/* <Input> */
|
||||
/* stream :: A pointer to the stream object. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void ft_close_stream( FT_Stream stream )
|
||||
FT_CALLBACK_DEF(void)
|
||||
ft_close_stream( FT_Stream stream )
|
||||
{
|
||||
munmap( (MUNMAP_ARG_CAST)stream->descriptor.pointer, stream->size );
|
||||
|
||||
|
|
|
@ -295,19 +295,25 @@ FT_BEGIN_HEADER
|
|||
/* FT_CALLBACK_TABLE_DEF is used to _define_ a constant variable */
|
||||
/* that contains pointers to callback functions. */
|
||||
/* */
|
||||
#ifdef __cplusplus
|
||||
|
||||
#define FT_CALLBACK_DEF extern "C"
|
||||
#ifndef FT_CALLBACK_DEF
|
||||
# ifdef __cplusplus
|
||||
# define FT_CALLBACK_DEF(x) extern "C" x
|
||||
# else
|
||||
# define FT_CALLBACK_DEF(x) static x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef FT_CALLBACK_TABLE
|
||||
# ifdef __cplusplus
|
||||
# define FT_CALLBACK_TABLE extern "C"
|
||||
# define FT_CALLBACK_TABLE_DEF extern "C"
|
||||
|
||||
# else
|
||||
|
||||
#define FT_CALLBACK_DEF static
|
||||
# define FT_CALLBACK_TABLE extern
|
||||
# define FT_CALLBACK_TABLE_DEF
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif /* __cplusplus */
|
||||
|
||||
FT_END_HEADER
|
||||
|
||||
|
|
|
@ -32,22 +32,22 @@
|
|||
} FT_AutoHinterRec;
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ft_autohinter_init( FT_AutoHinter module )
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ft_autohinter_init( FT_AutoHinter module )
|
||||
{
|
||||
return ah_hinter_new( module->root.library, &module->hinter );
|
||||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void ft_autohinter_done( FT_AutoHinter module )
|
||||
FT_CALLBACK_DEF(void)
|
||||
ft_autohinter_done( FT_AutoHinter module )
|
||||
{
|
||||
ah_hinter_done( module->hinter );
|
||||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ft_autohinter_load( FT_AutoHinter module,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ft_autohinter_load( FT_AutoHinter module,
|
||||
FT_GlyphSlot slot,
|
||||
FT_Size size,
|
||||
FT_UInt glyph_index,
|
||||
|
@ -58,8 +58,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void ft_autohinter_reset( FT_AutoHinter module,
|
||||
FT_CALLBACK_DEF(void)
|
||||
ft_autohinter_reset( FT_AutoHinter module,
|
||||
FT_Face face )
|
||||
{
|
||||
UNUSED( module );
|
||||
|
@ -69,8 +69,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void ft_autohinter_get_globals( FT_AutoHinter module,
|
||||
FT_CALLBACK_DEF(void)
|
||||
ft_autohinter_get_globals( FT_AutoHinter module,
|
||||
FT_Face face,
|
||||
void** global_hints,
|
||||
long* global_len )
|
||||
|
@ -80,8 +80,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void ft_autohinter_done_globals( FT_AutoHinter module,
|
||||
FT_CALLBACK_DEF(void)
|
||||
ft_autohinter_done_globals( FT_AutoHinter module,
|
||||
void* global_hints )
|
||||
{
|
||||
ah_hinter_done_global_hints( module->hinter, global_hints );
|
||||
|
|
|
@ -68,8 +68,8 @@
|
|||
/* <Return> */
|
||||
/* The address of newly allocated block. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void* ft_alloc( FT_Memory memory,
|
||||
FT_CALLBACK_DEF(void*)
|
||||
ft_alloc( FT_Memory memory,
|
||||
long size )
|
||||
{
|
||||
FT_UNUSED( memory );
|
||||
|
@ -98,8 +98,8 @@
|
|||
/* <Return> */
|
||||
/* The address of the reallocated memory block. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void* ft_realloc( FT_Memory memory,
|
||||
FT_CALLBACK_DEF(void*)
|
||||
ft_realloc( FT_Memory memory,
|
||||
long cur_size,
|
||||
long new_size,
|
||||
void* block )
|
||||
|
@ -124,8 +124,8 @@
|
|||
/* */
|
||||
/* block :: The address of block in memory to be freed. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void ft_free( FT_Memory memory,
|
||||
FT_CALLBACK_DEF(void)
|
||||
ft_free( FT_Memory memory,
|
||||
void* block )
|
||||
{
|
||||
FT_UNUSED( memory );
|
||||
|
@ -166,8 +166,8 @@
|
|||
/* <Input> */
|
||||
/* stream :: A pointer to the stream object. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
void ft_close_stream( FT_Stream stream )
|
||||
FT_CALLBACK_DEF(void)
|
||||
ft_close_stream( FT_Stream stream )
|
||||
{
|
||||
fclose( STREAM_FILE( stream ) );
|
||||
|
||||
|
@ -197,8 +197,8 @@
|
|||
/* <Return> */
|
||||
/* The number of bytes actually read. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
unsigned long ft_io_stream( FT_Stream stream,
|
||||
FT_CALLBACK_DEF(unsigned long)
|
||||
ft_io_stream( FT_Stream stream,
|
||||
unsigned long offset,
|
||||
unsigned char* buffer,
|
||||
unsigned long count )
|
||||
|
|
|
@ -288,8 +288,8 @@
|
|||
( (FTC_ChunkSet)(node)->root.data )
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ftc_chunk_set_lru_init( FT_Lru lru,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ftc_chunk_set_lru_init( FT_Lru lru,
|
||||
FT_LruNode node )
|
||||
{
|
||||
FTC_Chunk_Cache cache = FTC_CSET_LRU_GET_CACHE( lru );
|
||||
|
@ -311,8 +311,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void ftc_chunk_set_lru_done( FT_Lru lru,
|
||||
FT_CALLBACK_DEF(void)
|
||||
ftc_chunk_set_lru_done( FT_Lru lru,
|
||||
FT_LruNode node )
|
||||
{
|
||||
FTC_ChunkSet cset = FTC_LRUNODE_CSET( node );
|
||||
|
@ -324,8 +324,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Bool ftc_chunk_set_lru_compare( FT_LruNode node,
|
||||
FT_CALLBACK_DEF(FT_Bool)
|
||||
ftc_chunk_set_lru_compare( FT_LruNode node,
|
||||
FT_LruKey key )
|
||||
{
|
||||
FTC_ChunkSet cset = FTC_LRUNODE_CSET( node );
|
||||
|
|
|
@ -316,8 +316,8 @@
|
|||
( (FTC_GlyphSet)(node)->root.data )
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ftc_glyph_set_lru_init( FT_Lru lru,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ftc_glyph_set_lru_init( FT_Lru lru,
|
||||
FT_LruNode node )
|
||||
{
|
||||
FTC_Glyph_Cache cache = FTC_GSET_LRU_GET_CACHE( lru );
|
||||
|
@ -337,8 +337,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void ftc_glyph_set_lru_done( FT_Lru lru,
|
||||
FT_CALLBACK_DEF(void)
|
||||
ftc_glyph_set_lru_done( FT_Lru lru,
|
||||
FT_LruNode node )
|
||||
{
|
||||
FTC_GlyphSet gset = FTC_LRUNODE_GSET( node );
|
||||
|
@ -350,8 +350,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Bool ftc_glyph_set_lru_compare( FT_LruNode node,
|
||||
FT_CALLBACK_DEF(FT_Bool)
|
||||
ftc_glyph_set_lru_compare( FT_LruNode node,
|
||||
FT_LruKey key )
|
||||
{
|
||||
FTC_GlyphSet gset = FTC_LRUNODE_GSET( node );
|
||||
|
|
|
@ -62,8 +62,8 @@
|
|||
/*************************************************************************/
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void ftc_glyph_image_node_destroy( FTC_GlyphImage node,
|
||||
FT_CALLBACK_DEF(void)
|
||||
ftc_glyph_image_node_destroy( FTC_GlyphImage node,
|
||||
FTC_GlyphSet gset )
|
||||
{
|
||||
FT_Memory memory = gset->memory;
|
||||
|
@ -74,8 +74,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ftc_glyph_image_node_new( FTC_GlyphSet gset,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ftc_glyph_image_node_new( FTC_GlyphSet gset,
|
||||
FT_UInt glyph_index,
|
||||
FTC_GlyphImage *anode )
|
||||
{
|
||||
|
@ -161,8 +161,8 @@
|
|||
/* this function is important because it is both part of */
|
||||
/* an FTC_GlyphSet_Class and an FTC_CacheNode_Class */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
FT_ULong ftc_glyph_image_node_size( FTC_GlyphImage node )
|
||||
FT_CALLBACK_DEF(FT_ULong)
|
||||
ftc_glyph_image_node_size( FTC_GlyphImage node )
|
||||
{
|
||||
FT_ULong size = 0;
|
||||
FT_Glyph glyph = node->ft_glyph;
|
||||
|
@ -212,8 +212,8 @@
|
|||
/*************************************************************************/
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ftc_image_set_init( FTC_ImageSet iset,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ftc_image_set_init( FTC_ImageSet iset,
|
||||
FTC_Image_Desc* type )
|
||||
{
|
||||
iset->description = *type;
|
||||
|
@ -221,8 +221,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Bool ftc_image_set_compare( FTC_ImageSet iset,
|
||||
FT_CALLBACK_DEF(FT_Bool)
|
||||
ftc_image_set_compare( FTC_ImageSet iset,
|
||||
FTC_Image_Desc* type )
|
||||
{
|
||||
return FT_BOOL( !memcmp( &iset->description, type, sizeof ( *type ) ) );
|
||||
|
|
|
@ -41,8 +41,8 @@
|
|||
/*************************************************************************/
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ftc_manager_init_face( FT_Lru lru,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ftc_manager_init_face( FT_Lru lru,
|
||||
FT_LruNode node )
|
||||
{
|
||||
FTC_Manager manager = FTC_LRU_GET_MANAGER( lru );
|
||||
|
@ -67,8 +67,8 @@
|
|||
|
||||
|
||||
/* helper function for ftc_manager_done_face() */
|
||||
FT_CALLBACK_DEF
|
||||
FT_Bool ftc_manager_size_selector( FT_Lru lru,
|
||||
FT_CALLBACK_DEF(FT_Bool)
|
||||
ftc_manager_size_selector( FT_Lru lru,
|
||||
FT_LruNode node,
|
||||
FT_Pointer data )
|
||||
{
|
||||
|
@ -78,8 +78,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void ftc_manager_done_face( FT_Lru lru,
|
||||
FT_CALLBACK_DEF(void)
|
||||
ftc_manager_done_face( FT_Lru lru,
|
||||
FT_LruNode node )
|
||||
{
|
||||
FTC_Manager manager = FTC_LRU_GET_MANAGER( lru );
|
||||
|
@ -107,8 +107,8 @@
|
|||
} FTC_FontRequest;
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ftc_manager_init_size( FT_Lru lru,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ftc_manager_init_size( FT_Lru lru,
|
||||
FT_LruNode node )
|
||||
{
|
||||
FTC_FontRequest* font_req = (FTC_FontRequest*)node->key;
|
||||
|
@ -136,8 +136,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void ftc_manager_done_size( FT_Lru lru,
|
||||
FT_CALLBACK_DEF(void)
|
||||
ftc_manager_done_size( FT_Lru lru,
|
||||
FT_LruNode node )
|
||||
{
|
||||
FT_UNUSED( lru );
|
||||
|
@ -147,8 +147,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ftc_manager_flush_size( FT_Lru lru,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ftc_manager_flush_size( FT_Lru lru,
|
||||
FT_LruNode node,
|
||||
FT_LruKey key )
|
||||
{
|
||||
|
@ -174,8 +174,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Bool ftc_manager_compare_size( FT_LruNode node,
|
||||
FT_CALLBACK_DEF(FT_Bool)
|
||||
ftc_manager_compare_size( FT_LruNode node,
|
||||
FT_LruKey key )
|
||||
{
|
||||
FTC_FontRequest* req = (FTC_FontRequest*)key;
|
||||
|
|
|
@ -56,8 +56,8 @@
|
|||
/*************************************************************************/
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void ftc_sbit_chunk_node_destroy( FTC_ChunkNode node )
|
||||
FT_CALLBACK_DEF(void)
|
||||
ftc_sbit_chunk_node_destroy( FTC_ChunkNode node )
|
||||
{
|
||||
FTC_ChunkSet cset = node->cset;
|
||||
FT_Memory memory = cset->memory;
|
||||
|
@ -73,8 +73,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ftc_bitmap_copy( FT_Memory memory,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ftc_bitmap_copy( FT_Memory memory,
|
||||
FT_Bitmap* source,
|
||||
FTC_SBit target )
|
||||
{
|
||||
|
@ -95,8 +95,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ftc_sbit_chunk_node_new( FTC_ChunkSet cset,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ftc_sbit_chunk_node_new( FTC_ChunkSet cset,
|
||||
FT_UInt index,
|
||||
FTC_ChunkNode *anode )
|
||||
{
|
||||
|
@ -240,8 +240,8 @@
|
|||
/* this function is important because it is both part of */
|
||||
/* an FTC_ChunkSet_Class and an FTC_CacheNode_Class */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
FT_ULong ftc_sbit_chunk_node_size( FTC_ChunkNode node )
|
||||
FT_CALLBACK_DEF(FT_ULong)
|
||||
ftc_sbit_chunk_node_size( FTC_ChunkNode node )
|
||||
{
|
||||
FT_ULong size;
|
||||
FTC_ChunkSet cset = node->cset;
|
||||
|
@ -282,8 +282,8 @@
|
|||
/*************************************************************************/
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ftc_sbit_chunk_set_sizes( FTC_ChunkSet cset,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ftc_sbit_chunk_set_sizes( FTC_ChunkSet cset,
|
||||
FTC_Image_Desc* desc )
|
||||
{
|
||||
FT_Error error;
|
||||
|
@ -303,8 +303,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error ftc_sbit_chunk_set_init( FTC_SBitSet sset,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
ftc_sbit_chunk_set_init( FTC_SBitSet sset,
|
||||
FTC_Image_Desc* type )
|
||||
{
|
||||
sset->desc = *type;
|
||||
|
@ -313,8 +313,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Bool ftc_sbit_chunk_set_compare( FTC_SBitSet sset,
|
||||
FT_CALLBACK_DEF(FT_Bool)
|
||||
ftc_sbit_chunk_set_compare( FTC_SBitSet sset,
|
||||
FTC_Image_Desc* type )
|
||||
{
|
||||
return FT_BOOL( !memcmp( &sset->desc, type, sizeof ( *type ) ) );
|
||||
|
|
|
@ -36,8 +36,8 @@
|
|||
#define FT_COMPONENT trace_cidgload
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error cid_load_glyph( T1_Decoder* decoder,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
cid_load_glyph( T1_Decoder* decoder,
|
||||
FT_UInt glyph_index )
|
||||
{
|
||||
CID_Face face = (CID_Face)decoder->builder.face;
|
||||
|
|
|
@ -158,8 +158,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error parse_font_bbox( CID_Face face,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
parse_font_bbox( CID_Face face,
|
||||
CID_Parser* parser )
|
||||
{
|
||||
FT_Fixed temp[4];
|
||||
|
@ -177,8 +177,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error parse_font_matrix( CID_Face face,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
parse_font_matrix( CID_Face face,
|
||||
CID_Parser* parser )
|
||||
{
|
||||
FT_Matrix* matrix;
|
||||
|
@ -231,8 +231,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error parse_fd_array( CID_Face face,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
parse_fd_array( CID_Face face,
|
||||
CID_Parser* parser )
|
||||
{
|
||||
CID_Info* cid = &face->cid;
|
||||
|
|
|
@ -129,8 +129,8 @@
|
|||
|
||||
|
||||
/* qsort callback to sort the unicode map */
|
||||
FT_CALLBACK_DEF
|
||||
int compare_uni_maps( const void* a,
|
||||
FT_CALLBACK_DEF(int)
|
||||
compare_uni_maps( const void* a,
|
||||
const void* b )
|
||||
{
|
||||
PS_UniMap* map1 = (PS_UniMap*)a;
|
||||
|
|
|
@ -114,8 +114,8 @@
|
|||
#endif /* TT_CONFIG_OPTION_POSTSCRIPT_NAMES */
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Module_Interface SFNT_Get_Interface( FT_Module module,
|
||||
FT_CALLBACK_DEF(FT_Module_Interface)
|
||||
SFNT_Get_Interface( FT_Module module,
|
||||
const char* interface )
|
||||
{
|
||||
FT_UNUSED( module );
|
||||
|
|
|
@ -34,19 +34,17 @@
|
|||
#define FT_COMPONENT trace_ttcmap
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_UInt code_to_index0( TT_CMapTable* charmap,
|
||||
FT_ULong char_code );
|
||||
FT_CALLBACK_DEF
|
||||
FT_UInt code_to_index2( TT_CMapTable* charmap,
|
||||
FT_ULong char_code );
|
||||
FT_CALLBACK_DEF
|
||||
FT_UInt code_to_index4( TT_CMapTable* charmap,
|
||||
FT_ULong char_code );
|
||||
FT_CALLBACK_DEF
|
||||
FT_UInt code_to_index6( TT_CMapTable* charmap,
|
||||
FT_CALLBACK_DEF(FT_UInt) code_to_index0( TT_CMapTable* charmap,
|
||||
FT_ULong char_code );
|
||||
|
||||
FT_CALLBACK_DEF(FT_UInt) code_to_index2( TT_CMapTable* charmap,
|
||||
FT_ULong char_code );
|
||||
|
||||
FT_CALLBACK_DEF(FT_UInt) code_to_index4( TT_CMapTable* charmap,
|
||||
FT_ULong char_code );
|
||||
|
||||
FT_CALLBACK_DEF(FT_UInt) code_to_index6( TT_CMapTable* charmap,
|
||||
FT_ULong char_code );
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
|
@ -351,8 +349,8 @@
|
|||
/* <Return> */
|
||||
/* Glyph index into the glyphs array. 0 if the glyph does not exist. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
FT_UInt code_to_index0( TT_CMapTable* cmap,
|
||||
FT_CALLBACK_DEF(FT_UInt)
|
||||
code_to_index0( TT_CMapTable* cmap,
|
||||
FT_ULong charCode )
|
||||
{
|
||||
TT_CMap0* cmap0 = &cmap->c.cmap0;
|
||||
|
@ -377,8 +375,8 @@
|
|||
/* <Return> */
|
||||
/* Glyph index into the glyphs array. 0 if the glyph does not exist. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
FT_UInt code_to_index2( TT_CMapTable* cmap,
|
||||
FT_CALLBACK_DEF(FT_UInt)
|
||||
code_to_index2( TT_CMapTable* cmap,
|
||||
FT_ULong charCode )
|
||||
{
|
||||
FT_UInt result, index1, offset;
|
||||
|
@ -441,8 +439,8 @@
|
|||
/* <Return> */
|
||||
/* Glyph index into the glyphs array. 0 if the glyph does not exist. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
FT_UInt code_to_index4( TT_CMapTable* cmap,
|
||||
FT_CALLBACK_DEF(FT_UInt)
|
||||
code_to_index4( TT_CMapTable* cmap,
|
||||
FT_ULong charCode )
|
||||
{
|
||||
FT_UInt result, index1, segCount;
|
||||
|
@ -524,8 +522,8 @@
|
|||
/* <Return> */
|
||||
/* Glyph index into the glyphs array. 0 if the glyph does not exist. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF
|
||||
FT_UInt code_to_index6( TT_CMapTable* cmap,
|
||||
FT_CALLBACK_DEF(FT_UInt)
|
||||
code_to_index6( TT_CMapTable* cmap,
|
||||
FT_ULong charCode )
|
||||
{
|
||||
TT_CMap6* cmap6;
|
||||
|
|
|
@ -201,8 +201,8 @@
|
|||
/* */
|
||||
/*************************************************************************/
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error TT_Access_Glyph_Frame( TT_Loader* loader,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
TT_Access_Glyph_Frame( TT_Loader* loader,
|
||||
FT_UInt glyph_index,
|
||||
FT_ULong offset,
|
||||
FT_UInt byte_count )
|
||||
|
@ -224,8 +224,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void TT_Forget_Glyph_Frame( TT_Loader* loader )
|
||||
FT_CALLBACK_DEF(void)
|
||||
TT_Forget_Glyph_Frame( TT_Loader* loader )
|
||||
{
|
||||
FT_Stream stream = loader->stream;
|
||||
|
||||
|
@ -234,8 +234,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error TT_Load_Glyph_Header( TT_Loader* loader )
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
TT_Load_Glyph_Header( TT_Loader* loader )
|
||||
{
|
||||
FT_Stream stream = loader->stream;
|
||||
|
||||
|
@ -257,8 +257,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error TT_Load_Simple_Glyph( TT_Loader* load )
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
TT_Load_Simple_Glyph( TT_Loader* load )
|
||||
{
|
||||
FT_Error error;
|
||||
FT_Stream stream = load->stream;
|
||||
|
@ -416,8 +416,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error TT_Load_Composite_Glyph( TT_Loader* loader )
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
TT_Load_Composite_Glyph( TT_Loader* loader )
|
||||
{
|
||||
FT_Error error;
|
||||
FT_Stream stream = loader->stream;
|
||||
|
|
|
@ -1249,46 +1249,40 @@
|
|||
/*************************************************************************/
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_F26Dot6 Read_CVT( EXEC_OP_ FT_ULong index )
|
||||
FT_CALLBACK_DEF(FT_F26Dot6) Read_CVT( EXEC_OP_ FT_ULong index )
|
||||
{
|
||||
return CUR.cvt[index];
|
||||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_F26Dot6 Read_CVT_Stretched( EXEC_OP_ FT_ULong index )
|
||||
FT_CALLBACK_DEF(FT_F26Dot6) Read_CVT_Stretched( EXEC_OP_ FT_ULong index )
|
||||
{
|
||||
return TT_MULFIX( CUR.cvt[index], CURRENT_Ratio() );
|
||||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void Write_CVT( EXEC_OP_ FT_ULong index,
|
||||
FT_CALLBACK_DEF(voidà Write_CVT( EXEC_OP_ FT_ULong index,
|
||||
FT_F26Dot6 value )
|
||||
{
|
||||
CUR.cvt[index] = value;
|
||||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void Write_CVT_Stretched( EXEC_OP_ FT_ULong index,
|
||||
FT_CALLBACK_DEF(void) Write_CVT_Stretched( EXEC_OP_ FT_ULong index,
|
||||
FT_F26Dot6 value )
|
||||
{
|
||||
CUR.cvt[index] = FT_DivFix( value, CURRENT_Ratio() );
|
||||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void Move_CVT( EXEC_OP_ FT_ULong index,
|
||||
FT_CALLBACK_DEF(void) Move_CVT( EXEC_OP_ FT_ULong index,
|
||||
FT_F26Dot6 value )
|
||||
{
|
||||
CUR.cvt[index] += value;
|
||||
}
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
void Move_CVT_Stretched( EXEC_OP_ FT_ULong index,
|
||||
FT_CALLBACK_DEF(void) Move_CVT_Stretched( EXEC_OP_ FT_ULong index,
|
||||
FT_F26Dot6 value )
|
||||
{
|
||||
CUR.cvt[index] += FT_DivFix( value, CURRENT_Ratio() );
|
||||
|
|
|
@ -139,8 +139,8 @@
|
|||
|
||||
|
||||
/* compare two kerning pairs */
|
||||
FT_CALLBACK_DEF
|
||||
int compare_kern_pairs( const void* a,
|
||||
FT_CALLBACK_DEF(int)
|
||||
compare_kern_pairs( const void* a,
|
||||
const void* b )
|
||||
{
|
||||
T1_Kern_Pair* pair1 = (T1_Kern_Pair*)a;
|
||||
|
|
|
@ -55,8 +55,8 @@
|
|||
/*************************************************************************/
|
||||
|
||||
|
||||
FT_CALLBACK_DEF
|
||||
FT_Error T1_Parse_Glyph( T1_Decoder* decoder,
|
||||
FT_CALLBACK_DEF(FT_Error)
|
||||
T1_Parse_Glyph( T1_Decoder* decoder,
|
||||
FT_UInt glyph_index )
|
||||
{
|
||||
T1_Face face = (T1_Face)decoder->builder.face;
|
||||
|
|
Loading…
Reference in New Issue