summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2005-03-10 15:49:45 +0000
committerWerner Lemberg <wl@gnu.org>2005-03-10 15:49:45 +0000
commit3ea9ff3344da81e00f6ff3b25d2c654bc28e3ff4 (patch)
tree169dce80de748fa7fa97b8f36731b467471e4792
parentb6ca8399977373d6c3ae1404f0d325cfa1db6fe0 (diff)
downloadfreetype2-3ea9ff3344da81e00f6ff3b25d2c654bc28e3ff4.tar.gz
* src/truetype/ttpload.c (tt_face_load_cvt, tt_face_load_fpgm):
Fix serious typo which prevented correct TT rendering. * include/freetype/internal/ftmemory.h: Undo change from 2005-03-03. To suppress warnings it is sufficient to use `-fno-strict-aliasing'.
-rw-r--r--ChangeLog10
-rw-r--r--include/freetype/internal/ftmemory.h55
-rw-r--r--src/truetype/ttpload.c12
3 files changed, 15 insertions, 62 deletions
diff --git a/ChangeLog b/ChangeLog
index 279059afe..707c1ec6a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2005-03-10 Werner Lemberg <wl@gnu.org>
+ * src/truetype/ttpload.c (tt_face_load_cvt, tt_face_load_fpgm):
+ Fix serious typo which prevented correct TT rendering.
+
+ * include/freetype/internal/ftmemory.h: Undo change from 2005-03-03.
+ To suppress warnings it is sufficient to use `-fno-strict-aliasing'.
+
+2005-03-10 Werner Lemberg <wl@gnu.org>
+
* src/tools/glnames.py: Formatted.
Format output to be in sync with other FreeType code.
Import `re' and `os.path'.
@@ -5986,7 +5994,7 @@
the use of system-wide zlib.
Note that this macro, as well as
- FT_CONFIG_OPTION_BYTECODE_INTERPRETER, is not #undef-ed anymore.
+ TT_CONFIG_OPTION_BYTECODE_INTERPRETER, is not #undef-ed anymore.
This allows the build system to define them depending on the
configuration (typically by adding -D flags at compile time).
diff --git a/include/freetype/internal/ftmemory.h b/include/freetype/internal/ftmemory.h
index f0df054e8..ddd0cca15 100644
--- a/include/freetype/internal/ftmemory.h
+++ b/include/freetype/internal/ftmemory.h
@@ -368,59 +368,6 @@ FT_BEGIN_HEADER
/* if an error occured (i.e. if 'error != 0'). */
/* */
-
- /*
- * gcc 3.3 and newer will generate tons of _stupid_ warnings if we
- * don't take special measures.
- */
-#if defined ( __GNUC__ ) && \
- ( __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 3 ) )
-
-
-#define FT_ALLOC( _pointer_, _size_ ) \
- ({ \
- void* _tmp_ = NULL; \
- \
- \
- error = FT_MEM_ALLOC( _tmp_, _size_ ); \
- _pointer_ = _tmp_; \
- error != 0; \
- })
-
-#define FT_REALLOC( _pointer_, _cursize_, _newsize_ ) \
- ({ \
- void* _tmp_ = _pointer_; \
- \
- \
- error = FT_MEM_REALLOC( _tmp_, _cursize_, _newsize_ ); \
- _pointer_ = _tmp_; \
- error != 0; \
- })
-
-#define FT_QALLOC( _pointer_, _size_ ) \
- ({ \
- void* _tmp_; \
- \
- \
- error = FT_MEM_QALLOC( _tmp_, _size_ ); \
- _pointer_ = _tmp_; \
- error != 0; \
- })
-
-#define FT_QREALLOC( _pointer_, _cursize_, _newsize_ ) \
- ({ \
- void* _tmp_ = _pointer_; \
- \
- \
- error = FT_MEM_QREALLOC( _tmp_, _cursize_, _newsize_ ); \
- _pointer_ = _tmp_; \
- error != 0; \
- })
-
-
-#else /* !GCC || GCC < 3.3 */
-
-
#define FT_ALLOC( _pointer_, _size_ ) \
FT_SET_ERROR( FT_MEM_ALLOC( _pointer_, _size_ ) )
@@ -433,8 +380,6 @@ FT_BEGIN_HEADER
#define FT_QREALLOC( _pointer_, _current_, _size_ ) \
FT_SET_ERROR( FT_MEM_QREALLOC( _pointer_, _current_, _size_ ) )
-#endif /* !GCC || GCC < 3.3 */
-
#define FT_FREE( _pointer_ ) \
FT_MEM_FREE( _pointer_ )
diff --git a/src/truetype/ttpload.c b/src/truetype/ttpload.c
index de1f52bca..ee7479a1e 100644
--- a/src/truetype/ttpload.c
+++ b/src/truetype/ttpload.c
@@ -301,7 +301,7 @@
tt_face_load_cvt( TT_Face face,
FT_Stream stream )
{
-#ifdef FT_CONFIG_OPTION_BYTECODE_INTERPRETER
+#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
FT_Error error;
FT_Memory memory = stream->memory;
@@ -350,12 +350,12 @@
Exit:
return error;
-#else /* !FT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+#else /* !TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
FT_UNUSED( face );
FT_UNUSED( stream );
- return 0;
+ return TT_Err_Ok;
#endif
}
@@ -382,7 +382,7 @@
tt_face_load_fpgm( TT_Face face,
FT_Stream stream )
{
-#ifdef FT_CONFIG_OPTION_BYTECODE_INTERPRETER
+#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
FT_Error error;
FT_ULong table_len;
@@ -431,12 +431,12 @@
Exit:
return error;
-#else /* !FT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+#else /* !TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
FT_UNUSED( face );
FT_UNUSED( stream );
- return 0;
+ return TT_Err_Ok;
#endif
}