[autofit] Fix `make multi'. * include/freetype/internal/fttrace.h: Add `afmodule'. * src/autofit/afmodule.c: Include FT_INTERNAL_DEBUG_H. (FT_COMPONENT): Define.
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
diff --git a/ChangeLog b/ChangeLog
index eca001f..63a8bf2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2012-09-14 Werner Lemberg <wl@gnu.org>
+ [autofit] Fix `make multi'.
+
+ * include/freetype/internal/fttrace.h: Add `afmodule'.
+ * src/autofit/afmodule.c: Include FT_INTERNAL_DEBUG_H.
+ (FT_COMPONENT): Define.
+
+2012-09-14 Werner Lemberg <wl@gnu.org>
+
* src/autofit/afmodule.c: s/FT_Autofitter/AF_Module/.
2012-09-12 Werner Lemberg <wl@gnu.org>
diff --git a/include/freetype/internal/fttrace.h b/include/freetype/internal/fttrace.h
index cc2e7d1..e807a61 100644
--- a/include/freetype/internal/fttrace.h
+++ b/include/freetype/internal/fttrace.h
@@ -136,6 +136,7 @@ FT_TRACE_DEF( gxvprop )
FT_TRACE_DEF( gxvlcar )
/* autofit components */
+FT_TRACE_DEF( afmodule )
FT_TRACE_DEF( afhints )
FT_TRACE_DEF( afcjk )
FT_TRACE_DEF( aflatin )
diff --git a/src/autofit/afmodule.c b/src/autofit/afmodule.c
index 79752e7..fd44f39 100644
--- a/src/autofit/afmodule.c
+++ b/src/autofit/afmodule.c
@@ -28,10 +28,21 @@
#endif
#include FT_INTERNAL_OBJECTS_H
+#include FT_INTERNAL_DEBUG_H
#include FT_AUTOHINTER_H
#include FT_SERVICE_PROPERTIES_H
+ /*************************************************************************/
+ /* */
+ /* The macro FT_COMPONENT is used in trace mode. It is an implicit */
+ /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */
+ /* messages during execution. */
+ /* */
+#undef FT_COMPONENT
+#define FT_COMPONENT trace_afmodule
+
+
FT_Error
af_property_set( FT_Library library,
const char* property_name,