shithub: freetype+ttf2subf

Download patch

ref: db0717879f7de9be831b151984b64e5f9dd7b728
parent: c7c2c91ad0fe4e0bef99fe8bf382d4ce3ad62f90
author: David Turner <[email protected]>
date: Fri Jan 12 16:49:08 EST 2001

some minor changes to allow compilation in all modes, without warnings

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2001-01-11  Matthew Crosby  <[email protected]>
 
+	* src/pcd/pcfread.c: removed some compilation warnings related
+	to comparison of signed vs. unsigned integers
+
+	* include/freetype/internal/ftdebug.h: changed the debug trace
+	constants from trace_t2xxxx to trace_cffxxxx to be able to compile
+	the CFF driver in debug mode
+
+2001-01-11  Matthew Crosby  <[email protected]>
+
 	* builds/unix/freetype-config.in: Fix problems with separate
 	--prefix and --exec-prefix.
 
--- a/include/freetype/internal/ftdebug.h
+++ b/include/freetype/internal/ftdebug.h
@@ -82,11 +82,11 @@
     trace_psobjs,
 
     /* Type 2 driver components */
-    trace_t2driver,
-    trace_t2gload,
-    trace_t2load,
-    trace_t2objs,
-    trace_t2parse,
+    trace_cffdriver,
+    trace_cffgload,
+    trace_cffload,
+    trace_cffobjs,
+    trace_cffparse,
 
     /* CID driver components */
     trace_cidafm,
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -117,8 +117,8 @@
 #if defined( FT_DEBUG_LEVEL_TRACE )
 
     {
-      int    i,j;
-      char*  name;
+      unsigned int  i,j;
+      char*         name = "?";
 
 
       FT_TRACE4(( "Tables count: %ld\n", face->toc.count ));
@@ -126,7 +126,7 @@
       for ( i = 0; i < toc->count; i++ )
       {
         for( j = 0; j < sizeof ( tableNames ) / sizeof ( tableNames[0] ); j++ )
-          if ( tables[i].type == ( 1 << j ) )
+          if ( tables[i].type == (unsigned int)( 1 << j ) )
             name=tableNames[j];
         FT_TRACE4(( "Table %d: type=%-6s format=0x%04lX "
                     "size=0x%06lX (%8ld) offset=0x%04lX\n",