Formatting.

This commit is contained in:
Werner Lemberg 2009-10-06 11:12:28 +02:00
parent ca87cd0bda
commit 5c3160ec14
1 changed files with 35 additions and 40 deletions

View File

@ -8,53 +8,49 @@
2009-09-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> 2009-09-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[cache] Fix Savannah bug #27441, cleanup Redhat bugzilla #513582. [cache] Fix Savannah bug #27441, clean up Redhat bugzilla #513582.
Tricky casts in FTC_{CACHE,GCACHE,MRULIST}_LOOKUP_CMP() Tricky casts in FTC_{CACHE,GCACHE,MRULIST}_LOOKUP_CMP() are removed.
are removed. Now these functions should be called with Now these functions should be called with FTC_Node or FTC_MruNode
FTC_Node or FTC_MruNode variable, and the caller should variable, and the caller should cast them to appropriate pointers to
cast them to appropriate pointers to concrete data. concrete data. These tricky casts can GCC-4.4 optimizer (-O2)
These tricky casts can GCC-4.4 optimizer (-O2) confused confused and the crashing binaries are generated.
and the crashing binaries are generated.
* src/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): Drop tricky * src/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): Drop tricky cast.
cast. Now the 4th argument `node' of this function should Now the 4th argument `node' of this function should be typed as
be typed as FTC_MruNode. FTC_MruNode.
* src/cache/ftcglyph.h (FTC_GCACHE_LOOKUP_CMP): For inline * src/cache/ftcglyph.h (FTC_GCACHE_LOOKUP_CMP): For inline
implementation, new temporal variable FTC_MruNode `_mrunode' implementation, new temporal variable FTC_MruNode `_mrunode' to take
to take the pointer from FTC_MRULIST_LOOKUP_CMP(). For non the pointer from FTC_MRULIST_LOOKUP_CMP(). For non-inline
inline implementation, tricky cast is dropped. implementation, tricky cast is dropped.
* src/cache/ftcmanag.c (FTC_SIZE_NODE): New macro casting * src/cache/ftcmanag.c (FTC_SIZE_NODE): New macro casting
to FTC_SizeNode. to FTC_SizeNode.
(FTC_Manager_LookupSize): Replace FTC_SizeNode `node' by (FTC_Manager_LookupSize): Replace FTC_SizeNode `node' by FTC_MruNode
FTC_MruNode `mrunode', and FTC_SIZE_NODE() is inserted. `mrunode', and FTC_SIZE_NODE() is inserted.
(FTC_FACE_NODE): New macro casting to FTC_FaceNode. (FTC_FACE_NODE): New macro casting to FTC_FaceNode.
(FTC_Manager_LookupFace) Replace FTC_FaceNode `node' by (FTC_Manager_LookupFace) Replace FTC_FaceNode `node' by FTC_MruNode
FTC_MruNode `mrunode', and FTC_FACE_NODE() is inserted. `mrunode', and FTC_FACE_NODE() is inserted.
* src/cache/ftcbasic.c (FTC_ImageCache_Lookup): Change * src/cache/ftcbasic.c (FTC_ImageCache_Lookup): Change the type of
the type of `node' from FTC_INode to FTC_Node. Extra `node' from FTC_INode to FTC_Node. Extra casting macro FTC_NODE()
casting macro FTC_NODE() is dropped. is dropped.
(FTC_ImageCache_LookupScaler): Ditto. (FTC_ImageCache_LookupScaler): Ditto.
(FTC_SBitCache_Lookup): Change the type of `node' from (FTC_SBitCache_Lookup): Change the type of `node' from FTC_SNode to
FTC_SNode to FTC_Node. Extra casting macro FTC_NODE() FTC_Node. Extra casting macro FTC_NODE() is dropped. FTC_SNODE()
is dropped. FTC_SNODE() is inserted. is inserted.
(FTC_SBitCache_LookupScaler): Ditto. (FTC_SBitCache_LookupScaler): Ditto.
* src/cache/ftccmap.c (FTC_CMapCache_Lookup): Change * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Change the type of
the type of `node' from FTC_CMapNode to FTC_Node. Extra `node' from FTC_CMapNode to FTC_Node. Extra casting macro
casting macro FTC_NODE() is dropped, FTC_CMAP_NODE() is FTC_NODE() is dropped, FTC_CMAP_NODE() is inserted.
inserted.
2009-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> 2009-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[cache, psaux, type1] Fix for multi build. [cache, psaux, type1] Fix for multi build.
In multi build, some cpp functions are left as unresolved In multi build, some cpp functions are left as unresolved symbols.
symbols.
* src/cache/ftcbasic.c: Include FT_INTERNAL_DEBUG_H for * src/cache/ftcbasic.c: Include FT_INTERNAL_DEBUG_H for FT_TRACE1().
FT_TRACE1().
* src/psaux/t1decode.c: Include FT_INTERNAL_CALC_H for * src/psaux/t1decode.c: Include FT_INTERNAL_CALC_H for
FIXED_TO_INT(). FIXED_TO_INT().
@ -65,8 +61,8 @@
[autofit] Fix for multi build. [autofit] Fix for multi build.
* src/autofit/afmodule.h: Include FT_INTERNAL_OBJECTS_H * src/autofit/afmodule.h: Include FT_INTERNAL_OBJECTS_H to use
to use FT_DECLARE_MODULE() macro in multi build. FT_DECLARE_MODULE() macro in multi build.
* src/autofit/aflatin.c: Include <ft2build.h> to handle * src/autofit/aflatin.c: Include <ft2build.h> to handle
FT_ADVANCES_H correctly in multi build. FT_ADVANCES_H correctly in multi build.
@ -76,8 +72,8 @@
[cache] Check the face filled by FTC_Manager_LookupFace(). [cache] Check the face filled by FTC_Manager_LookupFace().
* src/cache/ftcbasic.c (ftc_basic_family_get_count): Return * src/cache/ftcbasic.c (ftc_basic_family_get_count): Return
immediately if FTC_Manager_LookupFace() fills face by NULL. immediately if FTC_Manager_LookupFace() fills face by NULL. Such
Such case can occur when the code is optimized by GCC-4.2.x. case can occur when the code is optimized by GCC-4.2.x.
2009-09-23 Werner Lemberg <wl@gnu.org> 2009-09-23 Werner Lemberg <wl@gnu.org>
@ -102,11 +98,10 @@
Improve configure.raw for cross build. Improve configure.raw for cross build.
* builds/unix/configure.raw: Remove temporal files created by * builds/unix/configure.raw: Remove temporal files created by the
the suffix checking for CC_BUILD. Set XX_ANSIFLAGS and suffix checking for CC_BUILD. Set XX_ANSIFLAGS and XX_CFLAGS when
XX_CFLAGS when cross compiler is GCC. AC_PROG_CC checks cross compiler is GCC. AC_PROG_CC checks whether the cross compiler
whether the cross compiler is GCC, its result is stored in is GCC, its result is stored in GCC.
GCC.
2009-09-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> 2009-09-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>