* 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
diff --git a/ChangeLog b/ChangeLog
index e66bbda..42b173c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,17 @@
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>
diff --git a/builds/unix/ftsystem.c b/builds/unix/ftsystem.c
index 81a45eb..754bbe8 100644
--- a/builds/unix/ftsystem.c
+++ b/builds/unix/ftsystem.c
@@ -23,7 +23,7 @@
#include FT_SYSTEM_H
#include FT_ERRORS_H
#include FT_TYPES_H
-#include FT_INTERNAL_OBJECTS_H
+#include FT_INTERNAL_STREAM_H
/* memory-mapping includes and definitions */
#ifdef HAVE_UNISTD_H
diff --git a/include/freetype/config/ftheader.h b/include/freetype/config/ftheader.h
index 4062fdb..d5dcd0d 100644
--- a/include/freetype/config/ftheader.h
+++ b/include/freetype/config/ftheader.h
@@ -602,6 +602,19 @@
*/
#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>
+
+
/* */
diff --git a/include/freetype/internal/services/svotval.h b/include/freetype/internal/services/svotval.h
index fbe45d0..435761d 100644
--- a/include/freetype/internal/services/svotval.h
+++ b/include/freetype/internal/services/svotval.h
@@ -19,6 +19,8 @@
#ifndef __SVOTVAL_H__
#define __SVOTVAL_H__
+#include FT_OPENTYPE_VALIDATE_H
+#include FT_INTERNAL_VALIDATE_H
FT_BEGIN_HEADER
diff --git a/include/freetype/internal/services/svpfr.h b/include/freetype/internal/services/svpfr.h
index b610505..4c93f1f 100644
--- a/include/freetype/internal/services/svpfr.h
+++ b/include/freetype/internal/services/svpfr.h
@@ -19,6 +19,7 @@
#ifndef __SVPFR_H__
#define __SVPFR_H__
+#include FT_PFR_H
#include FT_INTERNAL_SERVICE_H
diff --git a/src/base/ftsystem.c b/src/base/ftsystem.c
index b7fb5f9..8900e95 100644
--- a/src/base/ftsystem.c
+++ b/src/base/ftsystem.c
@@ -28,6 +28,7 @@
#include <ft2build.h>
#include FT_CONFIG_CONFIG_H
#include FT_INTERNAL_DEBUG_H
+#include FT_INTERNAL_STREAM_H
#include FT_SYSTEM_H
#include FT_ERRORS_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_Stream_Open( FT_Stream stream,
diff --git a/src/bdf/bdfdrivr.c b/src/bdf/bdfdrivr.c
index 39198eb..b03c8d0 100644
--- a/src/bdf/bdfdrivr.c
+++ b/src/bdf/bdfdrivr.c
@@ -337,7 +337,7 @@ THE SOFTWARE.
BDF_Face face = (BDF_Face)bdfface;
FT_Memory memory = FT_FACE_MEMORY( face );
- bdf_font_t* font;
+ bdf_font_t* font = NULL;
bdf_options_t options;
FT_UNUSED( num_params );
diff --git a/src/cache/ftcbasic.c b/src/cache/ftcbasic.c
index 9a7fa54..cff8be5 100644
--- a/src/cache/ftcbasic.c
+++ b/src/cache/ftcbasic.c
@@ -385,20 +385,12 @@
#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 */
typedef struct FTC_OldImage_Desc_
{
FTC_FontRec font;
FT_UInt image_type;
-
+
} FTC_OldImage_Desc;
@@ -434,7 +426,7 @@
typ->face_id = desc->font.face_id;
typ->width = desc->font.pix_width;
typ->height = desc->font.pix_height;
-
+
/* convert image type flags to load flags */
{
FT_UInt load_flags = FT_LOAD_DEFAULT;
@@ -473,7 +465,27 @@
typ->flags = load_flags;
}
- }
+ }
+
+
+ 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 )
@@ -642,6 +654,17 @@
#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 )
FTC_SBit_Cache_New( FTC_Manager manager,
FTC_SBitCache *acache )
@@ -657,11 +680,11 @@
FTC_SBit *ansbit )
{
FTC_ImageTypeRec type0;
-
+
if ( !desc )
return FT_Err_Invalid_Argument;
-
+
ftc_image_type_from_old_desc( &type0, desc );
return FTC_SBitCache_Lookup( (FTC_SBitCache)cache,
diff --git a/src/cff/cffcmap.c b/src/cff/cffcmap.c
index a486d34..cfaaebc 100644
--- a/src/cff/cffcmap.c
+++ b/src/cff/cffcmap.c
@@ -119,7 +119,7 @@
/*************************************************************************/
/*************************************************************************/
- const char *
+ FT_CALLBACK_DEF( const char* )
cff_sid_to_glyph_name( CFF_Font cff,
FT_UInt idx )
{
diff --git a/src/gzip/ftgzip.c b/src/gzip/ftgzip.c
index ff0753f..6f7bad7 100644
--- a/src/gzip/ftgzip.c
+++ b/src/gzip/ftgzip.c
@@ -24,6 +24,7 @@
#include FT_INTERNAL_MEMORY_H
#include FT_INTERNAL_STREAM_H
#include FT_INTERNAL_DEBUG_H
+#include FT_GZIP_H
#include <string.h>
diff --git a/src/lzw/ftlzw.c b/src/lzw/ftlzw.c
index 5d23cd2..f28a41e 100644
--- a/src/lzw/ftlzw.c
+++ b/src/lzw/ftlzw.c
@@ -26,6 +26,7 @@
#include FT_INTERNAL_MEMORY_H
#include FT_INTERNAL_STREAM_H
#include FT_INTERNAL_DEBUG_H
+#include FT_LZW_H
#include <string.h>
#include <stdio.h>
diff --git a/src/lzw/ftlzw2.c b/src/lzw/ftlzw2.c
index b1239dd..6df37f4 100644
--- a/src/lzw/ftlzw2.c
+++ b/src/lzw/ftlzw2.c
@@ -26,6 +26,7 @@
#include FT_INTERNAL_MEMORY_H
#include FT_INTERNAL_STREAM_H
#include FT_INTERNAL_DEBUG_H
+#include FT_LZW_H
#include <string.h>
#include <stdio.h>
diff --git a/src/psaux/t1cmap.c b/src/psaux/t1cmap.c
index 98816f2..79e58dd 100644
--- a/src/psaux/t1cmap.c
+++ b/src/psaux/t1cmap.c
@@ -257,7 +257,7 @@
/*************************************************************************/
/*************************************************************************/
- const char *
+ FT_CALLBACK_DEF( const char * )
t1_get_glyph_name( T1_Face face,
FT_UInt idx )
{
diff --git a/src/sfnt/ttbdf.c b/src/sfnt/ttbdf.c
index 9372384..ab69d65 100644
--- a/src/sfnt/ttbdf.c
+++ b/src/sfnt/ttbdf.c
@@ -85,6 +85,8 @@
FT_UInt version = FT_NEXT_USHORT( p );
FT_UInt num_strikes = FT_NEXT_USHORT( p );
FT_UInt32 strings = FT_NEXT_ULONG ( p );
+ FT_UInt count;
+ FT_Byte* strike;
if ( version != 0x0001 ||
@@ -98,13 +100,10 @@
bdf->num_strikes = num_strikes;
bdf->strings = bdf->table + strings;
bdf->strings_size = length - strings;
- }
- /* check the strike descriptors */
- {
- FT_UInt count = bdf->num_strikes;
- FT_Byte* p = bdf->table + 8;
- FT_Byte* strike = p + count * 4;
+ count = bdf->num_strikes;
+ p = bdf->table + 8;
+ strike = p + count * 4;
for ( ; count > 0; count-- )
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 9911915..8c6699d 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -1959,7 +1959,7 @@
}
- extern int
+ static int
gray_raster_render( PRaster raster,
const FT_Raster_Params* params )
{