* builds/unix/ftsystem.c, include/freetype/config/ftheader.h,
include/freetype/internal/services/svotval.h, include/freetype/internal/services/svpfr.h, src/base/ftsystem.c, src/bdf/bdfdrivr.c, src/cache/ftcbasic.c, src/cff/cffcmap.c, src/gzip/ftgzip.c, src/lzw/ftlzw.c, src/lzw/ftlzw2.c, src/psaux/t1cmap.c, src/sfnt/ttbdf.c, src/smooth/ftgrays.c: solved -Wmissing-prototypes warnings with GCC
This commit is contained in:
parent
6c71c6b968
commit
de271ab8f0
11
ChangeLog
11
ChangeLog
|
@ -7,6 +7,17 @@
|
||||||
|
|
||||||
solved compiler warnings as well as C++ compilation problems
|
solved compiler warnings as well as C++ compilation problems
|
||||||
|
|
||||||
|
* builds/unix/ftsystem.c, include/freetype/config/ftheader.h,
|
||||||
|
include/freetype/internal/services/svotval.h,
|
||||||
|
include/freetype/internal/services/svpfr.h,
|
||||||
|
src/base/ftsystem.c, src/bdf/bdfdrivr.c, src/cache/ftcbasic.c,
|
||||||
|
src/cff/cffcmap.c, src/gzip/ftgzip.c, src/lzw/ftlzw.c,
|
||||||
|
src/lzw/ftlzw2.c, src/psaux/t1cmap.c, src/sfnt/ttbdf.c,
|
||||||
|
src/smooth/ftgrays.c:
|
||||||
|
|
||||||
|
solved -Wmissing-prototypes warnings with GCC
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
2006-02-24 Chia-I Wu <b90201047@ntu.edu.tw>
|
2006-02-24 Chia-I Wu <b90201047@ntu.edu.tw>
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include FT_SYSTEM_H
|
#include FT_SYSTEM_H
|
||||||
#include FT_ERRORS_H
|
#include FT_ERRORS_H
|
||||||
#include FT_TYPES_H
|
#include FT_TYPES_H
|
||||||
#include FT_INTERNAL_OBJECTS_H
|
#include FT_INTERNAL_STREAM_H
|
||||||
|
|
||||||
/* memory-mapping includes and definitions */
|
/* memory-mapping includes and definitions */
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
|
|
|
@ -602,6 +602,19 @@
|
||||||
*/
|
*/
|
||||||
#define FT_GX_VALIDATE_H <freetype/ftgxval.h>
|
#define FT_GX_VALIDATE_H <freetype/ftgxval.h>
|
||||||
|
|
||||||
|
/*************************************************************************
|
||||||
|
*
|
||||||
|
* @macro:
|
||||||
|
* FT_PFR_H
|
||||||
|
*
|
||||||
|
* @description:
|
||||||
|
* A macro used in #include statements to name the file containing the
|
||||||
|
* FreeType 2 API used to access PFR-specific data.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define FT_PFR_H <freetype/ftpfr.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
#ifndef __SVOTVAL_H__
|
#ifndef __SVOTVAL_H__
|
||||||
#define __SVOTVAL_H__
|
#define __SVOTVAL_H__
|
||||||
|
|
||||||
|
#include FT_OPENTYPE_VALIDATE_H
|
||||||
|
#include FT_INTERNAL_VALIDATE_H
|
||||||
|
|
||||||
FT_BEGIN_HEADER
|
FT_BEGIN_HEADER
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#ifndef __SVPFR_H__
|
#ifndef __SVPFR_H__
|
||||||
#define __SVPFR_H__
|
#define __SVPFR_H__
|
||||||
|
|
||||||
|
#include FT_PFR_H
|
||||||
#include FT_INTERNAL_SERVICE_H
|
#include FT_INTERNAL_SERVICE_H
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <ft2build.h>
|
#include <ft2build.h>
|
||||||
#include FT_CONFIG_CONFIG_H
|
#include FT_CONFIG_CONFIG_H
|
||||||
#include FT_INTERNAL_DEBUG_H
|
#include FT_INTERNAL_DEBUG_H
|
||||||
|
#include FT_INTERNAL_STREAM_H
|
||||||
#include FT_SYSTEM_H
|
#include FT_SYSTEM_H
|
||||||
#include FT_ERRORS_H
|
#include FT_ERRORS_H
|
||||||
#include FT_TYPES_H
|
#include FT_TYPES_H
|
||||||
|
@ -213,7 +214,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* documentation is in ftobjs.h */
|
/* documentation is in ftstream.h */
|
||||||
|
|
||||||
FT_BASE_DEF( FT_Error )
|
FT_BASE_DEF( FT_Error )
|
||||||
FT_Stream_Open( FT_Stream stream,
|
FT_Stream_Open( FT_Stream stream,
|
||||||
|
|
|
@ -337,7 +337,7 @@ THE SOFTWARE.
|
||||||
BDF_Face face = (BDF_Face)bdfface;
|
BDF_Face face = (BDF_Face)bdfface;
|
||||||
FT_Memory memory = FT_FACE_MEMORY( face );
|
FT_Memory memory = FT_FACE_MEMORY( face );
|
||||||
|
|
||||||
bdf_font_t* font;
|
bdf_font_t* font = NULL;
|
||||||
bdf_options_t options;
|
bdf_options_t options;
|
||||||
|
|
||||||
FT_UNUSED( num_params );
|
FT_UNUSED( num_params );
|
||||||
|
|
|
@ -385,14 +385,6 @@
|
||||||
|
|
||||||
#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
|
#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
|
||||||
|
|
||||||
FT_EXPORT_DEF( FT_Error )
|
|
||||||
FTC_Image_Cache_New( FTC_Manager manager,
|
|
||||||
FTC_ImageCache *acache )
|
|
||||||
{
|
|
||||||
return FTC_ImageCache_New( manager, (FTC_ImageCache*)acache );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* yet another backwards-legacy structure */
|
/* yet another backwards-legacy structure */
|
||||||
typedef struct FTC_OldImage_Desc_
|
typedef struct FTC_OldImage_Desc_
|
||||||
{
|
{
|
||||||
|
@ -476,6 +468,26 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
FT_EXPORT( FT_Error )
|
||||||
|
FTC_Image_Cache_New( FTC_Manager manager,
|
||||||
|
FTC_ImageCache *acache );
|
||||||
|
|
||||||
|
FT_EXPORT( FT_Error )
|
||||||
|
FTC_Image_Cache_Lookup( FTC_ImageCache icache,
|
||||||
|
FTC_OldImage_Desc* desc,
|
||||||
|
FT_UInt gindex,
|
||||||
|
FT_Glyph *aglyph );
|
||||||
|
|
||||||
|
|
||||||
|
FT_EXPORT_DEF( FT_Error )
|
||||||
|
FTC_Image_Cache_New( FTC_Manager manager,
|
||||||
|
FTC_ImageCache *acache )
|
||||||
|
{
|
||||||
|
return FTC_ImageCache_New( manager, (FTC_ImageCache*)acache );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FT_EXPORT_DEF( FT_Error )
|
FT_EXPORT_DEF( FT_Error )
|
||||||
FTC_Image_Cache_Lookup( FTC_ImageCache icache,
|
FTC_Image_Cache_Lookup( FTC_ImageCache icache,
|
||||||
FTC_OldImage_Desc* desc,
|
FTC_OldImage_Desc* desc,
|
||||||
|
@ -642,6 +654,17 @@
|
||||||
|
|
||||||
#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
|
#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
|
||||||
|
|
||||||
|
FT_EXPORT( FT_Error )
|
||||||
|
FTC_SBit_Cache_New( FTC_Manager manager,
|
||||||
|
FTC_SBitCache *acache );
|
||||||
|
|
||||||
|
FT_EXPORT( FT_Error )
|
||||||
|
FTC_SBit_Cache_Lookup( FTC_SBitCache cache,
|
||||||
|
FTC_OldImage_Desc* desc,
|
||||||
|
FT_UInt gindex,
|
||||||
|
FTC_SBit *ansbit );
|
||||||
|
|
||||||
|
|
||||||
FT_EXPORT_DEF( FT_Error )
|
FT_EXPORT_DEF( FT_Error )
|
||||||
FTC_SBit_Cache_New( FTC_Manager manager,
|
FTC_SBit_Cache_New( FTC_Manager manager,
|
||||||
FTC_SBitCache *acache )
|
FTC_SBitCache *acache )
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
const char *
|
FT_CALLBACK_DEF( const char* )
|
||||||
cff_sid_to_glyph_name( CFF_Font cff,
|
cff_sid_to_glyph_name( CFF_Font cff,
|
||||||
FT_UInt idx )
|
FT_UInt idx )
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include FT_INTERNAL_MEMORY_H
|
#include FT_INTERNAL_MEMORY_H
|
||||||
#include FT_INTERNAL_STREAM_H
|
#include FT_INTERNAL_STREAM_H
|
||||||
#include FT_INTERNAL_DEBUG_H
|
#include FT_INTERNAL_DEBUG_H
|
||||||
|
#include FT_GZIP_H
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include FT_INTERNAL_MEMORY_H
|
#include FT_INTERNAL_MEMORY_H
|
||||||
#include FT_INTERNAL_STREAM_H
|
#include FT_INTERNAL_STREAM_H
|
||||||
#include FT_INTERNAL_DEBUG_H
|
#include FT_INTERNAL_DEBUG_H
|
||||||
|
#include FT_LZW_H
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include FT_INTERNAL_MEMORY_H
|
#include FT_INTERNAL_MEMORY_H
|
||||||
#include FT_INTERNAL_STREAM_H
|
#include FT_INTERNAL_STREAM_H
|
||||||
#include FT_INTERNAL_DEBUG_H
|
#include FT_INTERNAL_DEBUG_H
|
||||||
|
#include FT_LZW_H
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
|
@ -257,7 +257,7 @@
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
const char *
|
FT_CALLBACK_DEF( const char * )
|
||||||
t1_get_glyph_name( T1_Face face,
|
t1_get_glyph_name( T1_Face face,
|
||||||
FT_UInt idx )
|
FT_UInt idx )
|
||||||
{
|
{
|
||||||
|
|
|
@ -85,6 +85,8 @@
|
||||||
FT_UInt version = FT_NEXT_USHORT( p );
|
FT_UInt version = FT_NEXT_USHORT( p );
|
||||||
FT_UInt num_strikes = FT_NEXT_USHORT( p );
|
FT_UInt num_strikes = FT_NEXT_USHORT( p );
|
||||||
FT_UInt32 strings = FT_NEXT_ULONG ( p );
|
FT_UInt32 strings = FT_NEXT_ULONG ( p );
|
||||||
|
FT_UInt count;
|
||||||
|
FT_Byte* strike;
|
||||||
|
|
||||||
|
|
||||||
if ( version != 0x0001 ||
|
if ( version != 0x0001 ||
|
||||||
|
@ -98,13 +100,10 @@
|
||||||
bdf->num_strikes = num_strikes;
|
bdf->num_strikes = num_strikes;
|
||||||
bdf->strings = bdf->table + strings;
|
bdf->strings = bdf->table + strings;
|
||||||
bdf->strings_size = length - strings;
|
bdf->strings_size = length - strings;
|
||||||
}
|
|
||||||
|
|
||||||
/* check the strike descriptors */
|
count = bdf->num_strikes;
|
||||||
{
|
p = bdf->table + 8;
|
||||||
FT_UInt count = bdf->num_strikes;
|
strike = p + count * 4;
|
||||||
FT_Byte* p = bdf->table + 8;
|
|
||||||
FT_Byte* strike = p + count * 4;
|
|
||||||
|
|
||||||
|
|
||||||
for ( ; count > 0; count-- )
|
for ( ; count > 0; count-- )
|
||||||
|
|
|
@ -1959,7 +1959,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern int
|
static int
|
||||||
gray_raster_render( PRaster raster,
|
gray_raster_render( PRaster raster,
|
||||||
const FT_Raster_Params* params )
|
const FT_Raster_Params* params )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue