summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-06-21 18:03:56 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-06-21 18:03:56 +0000
commit6633c240de2d4eaf9f65407da509a54bb36372b5 (patch)
treedc54690f65a26fee2373be6fbc2e98b5f7cc95c0
parentd6c26a1e2a7f50df998bfa8181381a4eca1e555f (diff)
downloadpango-6633c240de2d4eaf9f65407da509a54bb36372b5.tar.gz
Use the gcc-3.3 strict-aliasing compatible macros from fterrcompat.h
Mon Jun 21 13:55:17 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/otlbuffer.c: Use the gcc-3.3 strict-aliasing compatible macros from fterrcompat.h (#140495, reported by Stanislav Brabec)
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-1-106
-rw-r--r--ChangeLog.pre-1-66
-rw-r--r--ChangeLog.pre-1-86
-rw-r--r--pango/opentype/otlbuffer.c22
5 files changed, 38 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index ba96d330..59c4f76f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Jun 21 13:55:17 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/otlbuffer.c: Use the gcc-3.3
+ strict-aliasing compatible macros from fterrcompat.h
+ (#140495, reported by Stanislav Brabec)
+
Mon Jun 21 11:41:18 2004 Owen Taylor <otaylor@redhat.com>
* pango/pango-attributes.c (pango_attr_list_change):
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index ba96d330..59c4f76f 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,9 @@
+Mon Jun 21 13:55:17 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/otlbuffer.c: Use the gcc-3.3
+ strict-aliasing compatible macros from fterrcompat.h
+ (#140495, reported by Stanislav Brabec)
+
Mon Jun 21 11:41:18 2004 Owen Taylor <otaylor@redhat.com>
* pango/pango-attributes.c (pango_attr_list_change):
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index ba96d330..59c4f76f 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,9 @@
+Mon Jun 21 13:55:17 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/otlbuffer.c: Use the gcc-3.3
+ strict-aliasing compatible macros from fterrcompat.h
+ (#140495, reported by Stanislav Brabec)
+
Mon Jun 21 11:41:18 2004 Owen Taylor <otaylor@redhat.com>
* pango/pango-attributes.c (pango_attr_list_change):
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index ba96d330..59c4f76f 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,9 @@
+Mon Jun 21 13:55:17 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/otlbuffer.c: Use the gcc-3.3
+ strict-aliasing compatible macros from fterrcompat.h
+ (#140495, reported by Stanislav Brabec)
+
Mon Jun 21 11:41:18 2004 Owen Taylor <otaylor@redhat.com>
* pango/pango-attributes.c (pango_attr_list_change):
diff --git a/pango/opentype/otlbuffer.c b/pango/opentype/otlbuffer.c
index bb0d5e43..6c9c0365 100644
--- a/pango/opentype/otlbuffer.c
+++ b/pango/opentype/otlbuffer.c
@@ -15,6 +15,12 @@
#include FT_INTERNAL_MEMORY_H
+/* To get the gcc-3.3 strict-aliasing compatible versions
+ * FREE/REALLOC_ARRAY/etc. rather than the FT_* versions
+ * that
+ */
+#include "fterrcompat.h"
+
static FT_Error
otl_buffer_ensure( OTL_Buffer buffer,
FT_ULong size )
@@ -29,11 +35,11 @@
while (size > new_allocated)
new_allocated += (new_allocated >> 1) + 8;
- if ( FT_REALLOC_ARRAY( buffer->in_string, buffer->allocated, new_allocated, OTL_GlyphItemRec ) )
+ if ( REALLOC_ARRAY( buffer->in_string, buffer->allocated, new_allocated, OTL_GlyphItemRec ) )
return error;
- if ( FT_REALLOC_ARRAY( buffer->out_string, buffer->allocated, new_allocated, OTL_GlyphItemRec ) )
+ if ( REALLOC_ARRAY( buffer->out_string, buffer->allocated, new_allocated, OTL_GlyphItemRec ) )
return error;
- if ( FT_REALLOC_ARRAY( buffer->positions, buffer->allocated, new_allocated, OTL_PositionRec ) )
+ if ( REALLOC_ARRAY( buffer->positions, buffer->allocated, new_allocated, OTL_PositionRec ) )
return error;
buffer->allocated = new_allocated;
@@ -48,7 +54,7 @@
{
FT_Error error;
- if ( FT_ALLOC( *buffer, sizeof( OTL_BufferRec ) ) )
+ if ( ALLOC( *buffer, sizeof( OTL_BufferRec ) ) )
return error;
(*buffer)->memory = memory;
@@ -89,10 +95,10 @@
{
FT_Memory memory = buffer->memory;
- FT_FREE( buffer->in_string );
- FT_FREE( buffer->out_string );
- FT_FREE( buffer->positions );
- FT_FREE( buffer );
+ FREE( buffer->in_string );
+ FREE( buffer->out_string );
+ FREE( buffer->positions );
+ FREE( buffer );
return FT_Err_Ok;
}