formatting, doc improvements
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
diff --git a/ChangeLog b/ChangeLog
index 587f83e..5da3b0c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,14 +1,20 @@
-2004-04-21 David Turner <david@freetype.org>
+2004-04-21 David Turner <david@freetype.org>
- * src/cff/cffobjs.c (cff_face_init): fixed a small memory leak
+ * src/cff/cffobjs.c (cff_face_init): Fix a small memory leak.
- * src/autofit/afloader.c, src/autofit/afmodule.c, src/base/ftdebug.c:
- removed compiler warnings
+ * src/autofit/afloader.c (af_loader_load_g), src/autofit/afmodule.c
+ (af_autofitter_load_glyph), src/base/ftdebug.c (FT_Trace_Get_Name):
+ Remove compiler warnings.
- * src/autofit/aftypes.h, src/lzw/zopen.c, src/pcf/pcfdrivr.c,
- src/pcf/pcfread.c, src/psaux/psobjs.c, src/type42/t42drivr.c:
- changed data arrays to "const" to avoid populating the ".data"
- segment
+ * src/autofit/aftypes.h: Undefine AF_DEBUG.
+
+ * src/lzw/zopen.c (rmask), src/pcf/pcfdrivr.c (pcf_service_bdf,
+ pcf_services), src/pcf/pcfread.c (tableNames), src/psaux/psobjs.c
+ (ft_char_table), src/type42/t42drivr.c (t42_service_glyph_dict,
+ t42_service_ps_font_name): Decorate data arrays with `const' to
+ avoid populating the `.data' segment.
+
+ * src/lzw/Jamfile: New file.
2004-04-20 Werner Lemberg <wl@gnu.org>
diff --git a/src/autofit/afmodule.c b/src/autofit/afmodule.c
index f266a7a..e22ffff 100644
--- a/src/autofit/afmodule.c
+++ b/src/autofit/afmodule.c
@@ -31,7 +31,7 @@
FT_UInt glyph_index,
FT_Int32 load_flags )
{
- FT_UNUSED(size);
+ FT_UNUSED( size );
return af_loader_load_glyph( module->loader, slot->face,
glyph_index, load_flags );
diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c
index bbe1654..4d23b9a 100644
--- a/src/cff/cffobjs.c
+++ b/src/cff/cffobjs.c
@@ -503,16 +503,13 @@
char* fullp = full;
char* family = root->family_name;
- /* we're going to try to extract the style name from the
- * full name. We need to ignore spaces and dashes during
- * the search.
- */
+ /* We try to extract the style name from the full name. */
+ /* We need to ignore spaces and dashes during the search. */
if ( full )
{
while ( *fullp )
{
- /* skip common characters at the start of both strings
- */
+ /* skip common characters at the start of both strings */
if ( *fullp == *family )
{
family++;
@@ -520,15 +517,14 @@
continue;
}
- /* ignore spaces or dashes in full name during comparison
- */
+ /* ignore spaces and dashes in full name during comparison */
if ( *fullp == ' ' || *fullp == '-' )
{
fullp++;
continue;
}
- /* ignore spaces and dashes in family name during comparison
- */
+
+ /* ignore spaces and dashes in family name during comparison */
if ( *family == ' ' || *family == '-' )
{
family++;
@@ -537,11 +533,10 @@
if ( !*family && *fullp )
{
- /* the full name begins with the same characters than the
- * family name, with spaces and dashes removed. In this
- * case, the remaining string in "fullp" will be used
- * as the style name
- */
+ /* Rhe full name begins with the same characters as the */
+ /* family name, with spaces and dashes removed. In this */
+ /* case, the remaining string in `fullp' will be used as */
+ /* the style name. */
style_name = cff_strcpy( memory, fullp );
}
break;
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index 7087ca5..4d19c70 100644
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -285,7 +285,7 @@
#if 'A' == 65
/* ASCII */
- static const char ft_char_table[128] =
+ static const char ft_char_table[128] =
{
/* 0x00 */
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
@@ -306,7 +306,7 @@
#if 'A' == 193
/* EBCDIC */
- static const char ft_char_table[128] =
+ static const char ft_char_table[128] =
{
/* 0x80 */
-1, 10, 11, 12, 13, 14, 15, 16, 17, 18, -1, -1, -1, -1, -1, -1,