summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2012-01-16 18:51:15 +0900
committersuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2012-01-16 18:51:15 +0900
commit4880a0ed82c59f8be278bed74d6f8b3b9a454795 (patch)
treea438c38db89ed91d8df5e99d4b6b3a2238402384
parent3c96681856f2d4ac8bdd1f6a1e64fbfd9fd30d8e (diff)
downloadfreetype2-4880a0ed82c59f8be278bed74d6f8b3b9a454795.tar.gz
[cff] Remove redundant declarations of cff_cmap_XXX_class_rec.
* src/cff/cffpic.c: The declarations of FT_Init_Class_cff_cmap_encoding_class_rec() and FT_Init_Class_cff_cmap_unicode_class_rec() are removed. They can be obtained by the inclusion of cffcmap.h. cffcmap.h invokes FT_DECLARE_CMAP_CLASS() and it declares FT_Init_Class_cff_cmap_encoding_class_rec() etc in PIC mode.
-rw-r--r--ChangeLog11
-rw-r--r--src/cff/cffpic.c5
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 7e4342275..9ac911bdf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2012-01-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cff] Remove redundant declarations of cff_cmap_XXX_class_rec.
+
+ * src/cff/cffpic.c: The declarations of
+ FT_Init_Class_cff_cmap_encoding_class_rec() and
+ FT_Init_Class_cff_cmap_unicode_class_rec() are removed.
+ They can be obtained by the inclusion of cffcmap.h.
+ cffcmap.h invokes FT_DECLARE_CMAP_CLASS() and it declares
+ FT_Init_Class_cff_cmap_encoding_class_rec() etc in PIC mode.
+
2012-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Fix redundant declaration warning in PIC mode.
diff --git a/src/cff/cffpic.c b/src/cff/cffpic.c
index 84f9a1ebf..d29cf9078 100644
--- a/src/cff/cffpic.c
+++ b/src/cff/cffpic.c
@@ -19,6 +19,7 @@
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_INTERNAL_OBJECTS_H
+#include "cffcmap.h"
#include "cffpic.h"
#include "cfferrs.h"
@@ -37,10 +38,6 @@
FT_Error FT_Create_Class_cff_field_handlers( FT_Library, CFF_Field_Handler**);
void FT_Destroy_Class_cff_field_handlers( FT_Library, CFF_Field_Handler*);
- /* forward declaration of PIC init functions from cffcmap.c */
- void FT_Init_Class_cff_cmap_encoding_class_rec( FT_Library, FT_CMap_ClassRec*);
- void FT_Init_Class_cff_cmap_unicode_class_rec( FT_Library, FT_CMap_ClassRec*);
-
void
cff_driver_class_pic_free( FT_Library library )
{