* include/freetype/config/ftconfig.h: Add two more `L's to constants. Add missing semicolons. * builds/toplevel.mk: Do similar change as for builds/unix/detect.mk. * include/freetype/freetype.h (FT_ENC_TAG): New version to make it easier to redefine. * include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto. * include/freetype/freetype.h (FT_New_Memory_Face): Updated
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
diff --git a/ChangeLog b/ChangeLog
index 33565b7..6890a8f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2001-06-20 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftconfig.h: Add two more `L's to
+ constants.
+ Add missing semicolons.
+
+ * builds/toplevel.mk: Do similar change as for
+ builds/unix/detect.mk.
+
+ * include/freetype/freetype.h (FT_ENC_TAG): New version to make it
+ easier to redefine.
+ * include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto.
+
2001-06-19 David Turner <david@freetype.org>
* builds/win32/visualc/freetype.dsp, builds/win32/visualc/index.html:
@@ -20,7 +33,7 @@
listed here, but FT2 now compiles without warnings with VC++ and the
"/W4" warning level (lint-style).
- * include/freetype/freetype.h (FT_New_Memory_Face): Updated
+ * include/freetype/freetype.h (FT_New_Memory_Face): Updated
documentation.
* include/freetype/fttypes.h (FT_BOOL): New macro.
* include/freetype/internal/ftdebug.h: Add #pragma for Visual C++
@@ -525,7 +538,7 @@
value an unsigned short value, first by shifting right 16 bits,
then by casting the results to FT_UShort.
-2001-03-17 David Turner <david.turner@freetype.org>
+2001-03-17 David Turner <david.turner@freetype.org>
* src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
diff --git a/builds/toplevel.mk b/builds/toplevel.mk
index 05a8597..27a7af7 100644
--- a/builds/toplevel.mk
+++ b/builds/toplevel.mk
@@ -99,7 +99,7 @@ ifdef check_platform
#
# note: This test is duplicated in "builds/toplevel.mk".
#
- is_unix := $(strip $(wildcard /sbin/init) $(wildcard /hurd/auth))
+ is_unix := $(strip $(wildcard /sbin/init) $(wildcard /usr/sbin/init) $(wildcard /hurd/auth))
ifneq ($(is_unix),)
distclean:
diff --git a/include/freetype/config/ftconfig.h b/include/freetype/config/ftconfig.h
index 1335587..8a20a47 100644
--- a/include/freetype/config/ftconfig.h
+++ b/include/freetype/config/ftconfig.h
@@ -62,7 +62,7 @@ FT_BEGIN_HEADER
#include <limits.h>
/* The number of bytes in an `int' type. */
-#if UINT_MAX == 0xFFFFFFFFU
+#if UINT_MAX == 0xFFFFFFFFUL
#define FT_SIZEOF_INT 4
#elif UINT_MAX == 0xFFFFU
#define FT_SIZEOF_INT 2
@@ -73,7 +73,7 @@ FT_BEGIN_HEADER
#endif
/* The number of bytes in a `long' type. */
-#if ULONG_MAX == 0xFFFFFFFFU
+#if ULONG_MAX == 0xFFFFFFFFUL
#define FT_SIZEOF_LONG 4
#elif ULONG_MAX > 0xFFFFFFFFU && ULONG_MAX == 0xFFFFFFFFFFFFFFFFU
#define FT_SIZEOF_LONG 8
@@ -127,7 +127,7 @@ FT_BEGIN_HEADER
#error "no 32bit type found -- please check your configuration files"
#endif
-/* now, lookup for an integer type that is at least 32 bits */
+ /* now, lookup for an integer type that is at least 32 bits */
#if FT_SIZEOF_INT >= 4
typedef int FT_Fast;
@@ -135,8 +135,8 @@ FT_BEGIN_HEADER
#elif FT_SIZEOF_LONG >= 4
- typedef long FT_Fast
- typedef unsigned long FT_UFast
+ typedef long FT_Fast;
+ typedef unsigned long FT_UFast;
#endif
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index c03c89d..c9bc58a 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -363,11 +363,11 @@ FT_BEGIN_HEADER
/* This macro converts four letter tags into an unsigned long. */
/* */
#ifndef FT_ENC_TAG
-#define FT_ENC_TAG( _x1, _x2, _x3, _x4 ) \
- ( ( (unsigned long)_x1 << 24 ) | \
- ( (unsigned long)_x2 << 16 ) | \
- ( (unsigned long)_x3 << 8 ) | \
- (unsigned long)_x4 )
+#define FT_ENC_TAG( value, _x1, _x2, _x3, _x4 ) \
+ value = ( ( (unsigned long)_x1 << 24 ) | \
+ ( (unsigned long)_x2 << 16 ) | \
+ ( (unsigned long)_x3 << 8 ) | \
+ (unsigned long)_x4 )
#endif /* FT_ENC_TAG */
@@ -388,21 +388,22 @@ FT_BEGIN_HEADER
/* */
typedef enum FT_Encoding_
{
- ft_encoding_none = 0,
- ft_encoding_symbol = FT_ENC_TAG( 's', 'y', 'm', 'b' ),
- ft_encoding_unicode = FT_ENC_TAG( 'u', 'n', 'i', 'c' ),
- ft_encoding_latin_2 = FT_ENC_TAG( 'l', 'a', 't', '2' ),
- ft_encoding_sjis = FT_ENC_TAG( 's', 'j', 'i', 's' ),
- ft_encoding_gb2312 = FT_ENC_TAG( 'g', 'b', ' ', ' ' ),
- ft_encoding_big5 = FT_ENC_TAG( 'b', 'i', 'g', '5' ),
- ft_encoding_wansung = FT_ENC_TAG( 'w', 'a', 'n', 's' ),
- ft_encoding_johab = FT_ENC_TAG( 'j', 'o', 'h', 'a' ),
-
- ft_encoding_adobe_standard = FT_ENC_TAG( 'A', 'D', 'O', 'B' ),
- ft_encoding_adobe_expert = FT_ENC_TAG( 'A', 'D', 'B', 'E' ),
- ft_encoding_adobe_custom = FT_ENC_TAG( 'A', 'D', 'B', 'C' ),
-
- ft_encoding_apple_roman = FT_ENC_TAG( 'a', 'r', 'm', 'n' )
+ FT_ENC_TAG( ft_encoding_none, 0, 0, 0, 0 ),
+
+ FT_ENC_TAG( ft_encoding_symbol, 's', 'y', 'm', 'b' ),
+ FT_ENC_TAG( ft_encoding_unicode, 'u', 'n', 'i', 'c' ),
+ FT_ENC_TAG( ft_encoding_latin_2, 'l', 'a', 't', '2' ),
+ FT_ENC_TAG( ft_encoding_sjis, 's', 'j', 'i', 's' ),
+ FT_ENC_TAG( ft_encoding_gb2312, 'g', 'b', ' ', ' ' ),
+ FT_ENC_TAG( ft_encoding_big5, 'b', 'i', 'g', '5' ),
+ FT_ENC_TAG( ft_encoding_wansung, 'w', 'a', 'n', 's' ),
+ FT_ENC_TAG( ft_encoding_johab, 'j', 'o', 'h', 'a' ),
+
+ FT_ENC_TAG( ft_encoding_adobe_standard, 'A', 'D', 'O', 'B' ),
+ FT_ENC_TAG( ft_encoding_adobe_expert, 'A', 'D', 'B', 'E' ),
+ FT_ENC_TAG( ft_encoding_adobe_custom, 'A', 'D', 'B', 'C' ),
+
+ FT_ENC_TAG( ft_encoding_apple_roman, 'a', 'r', 'm', 'n' )
} FT_Encoding;
diff --git a/include/freetype/ftimage.h b/include/freetype/ftimage.h
index ec94e37..2f8ab7e 100644
--- a/include/freetype/ftimage.h
+++ b/include/freetype/ftimage.h
@@ -577,11 +577,11 @@ FT_BEGIN_HEADER
/* This macro converts four letter tags into an unsigned long. */
/* */
#ifndef FT_IMAGE_TAG
-#define FT_IMAGE_TAG( _x1, _x2, _x3, _x4 ) \
- ( ( (unsigned long)_x1 << 24 ) | \
- ( (unsigned long)_x2 << 16 ) | \
- ( (unsigned long)_x3 << 8 ) | \
- (unsigned long)_x4 )
+#define FT_IMAGE_TAG( value, _x1, _x2, _x3, _x4 ) \
+ value = ( ( (unsigned long)_x1 << 24 ) | \
+ ( (unsigned long)_x2 << 16 ) | \
+ ( (unsigned long)_x3 << 8 ) | \
+ (unsigned long)_x4 )
#endif /* FT_IMAGE_TAG */
@@ -617,11 +617,12 @@ FT_BEGIN_HEADER
/* */
typedef enum FT_Glyph_Format_
{
- ft_glyph_format_none = 0,
- ft_glyph_format_composite = FT_IMAGE_TAG( 'c', 'o', 'm', 'p' ),
- ft_glyph_format_bitmap = FT_IMAGE_TAG( 'b', 'i', 't', 's' ),
- ft_glyph_format_outline = FT_IMAGE_TAG( 'o', 'u', 't', 'l' ),
- ft_glyph_format_plotter = FT_IMAGE_TAG( 'p', 'l', 'o', 't' )
+ FT_IMAGE_TAG( ft_glyph_format_none, 0, 0, 0, 0 ),
+
+ FT_IMAGE_TAG( ft_glyph_format_composite, 'c', 'o', 'm', 'p' ),
+ FT_IMAGE_TAG( ft_glyph_format_bitmap, 'b', 'i', 't', 's' ),
+ FT_IMAGE_TAG( ft_glyph_format_outline, 'o', 'u', 't', 'l' ),
+ FT_IMAGE_TAG( ft_glyph_format_plotter, 'p', 'l', 'o', 't' )
} FT_Glyph_Format;