freetype2/src/base
Werner Lemberg 92aa527a1c * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk
(CFLAGS), builds/compiler/gcc.mk (CFLAGS): Remove
-fno-strict-aliasing.


Say you have `(Foo*)x' and want to assign, pass, or return it as
`(Bar*)'.  If you simply say `x' or `(Bar*)x', then the C compiler
would warn you that type casting incompatible pointer types breaks
strict-aliasing.  The solution is to cast to `(void*)' instead which
is the generic pointer type, so the compiler knows that it should
make no strict-aliasing assumption on `x'.  But the problem with
`(void*)x' is that seems like in C++, unlike C, `void*' is not a
generic pointer type and assigning `void*' to `Bar*' without a cast
causes an error.  The solution is to cast to `Bar*' too, with
`(Bar*)(void*)x' as the result -- this is what the patch does.

* include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP),
include/freetype/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): Remove
cast on lvalue, use a temporary pointer instead.
Cast temporarily to (void*) to not break strict aliasing.

* include/freetype/internal/ftmemory.h (FT_MEM_ALLOC,
FT_MEM_REALLOC, FT_MEM_QALLOC, FT_MEM_QREALLOC, FT_MEM_FREE),
src/base/ftglyph.c (FT_Glyph_To_Bitmap): Cast temporarily to (void*)
to not break strict aliasing.

* src/base/ftinit.c (FT_USE_MODULE): Fix wrong type information.

* builds/unix/configure.ac (XX_CFLAGS): Remove -fno-strict-aliasing.

* src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c --
it is currently loaded from ttsbit.c.


Other formatting.
2005-05-23 21:33:02 +00:00
..
Jamfile * src/base/ftbitmap.c (FT_Bitmap_Convert): small improvements to the 2005-02-10 16:11:29 +00:00
ftapi.c * include/freetype/t1tables.h (t1_blend_max): Fix typo. 2002-03-30 13:16:35 +00:00
ftbase.c Provide generic access to MacOS resource forks. 2004-02-25 12:58:54 +00:00
ftbbox.c * src/base/ftbbox.c (BBox_Conic_Check): Fix boundary cases. 2004-05-19 09:22:26 +00:00
ftbdf.c Documentation updates, whitespace. 2004-12-13 23:16:59 +00:00
ftbitmap.c * docs/CHANGES: Updated. 2005-05-20 21:52:19 +00:00
ftcalc.c Documentation updates, whitespace. 2004-12-13 23:16:59 +00:00
ftdbgmem.c Various fixes for C and C++ compiling. 2005-03-03 17:09:08 +00:00
ftdebug.c Documentation updates, whitespace. 2004-12-13 23:16:59 +00:00
ftgloadr.c * include/freetype/internal/psaux.h (T1_ParseState): New 2004-05-13 12:59:59 +00:00
ftglyph.c * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk 2005-05-23 21:33:02 +00:00
ftinit.c * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk 2005-05-23 21:33:02 +00:00
ftmac.c * src/base/ftmac.c: Don't include truetype/ttobjs.h. 2004-08-28 08:02:46 +00:00
ftmm.c * src/pcf/pcfdrivr.c: Revert change from 2004-04-17. 2004-04-25 20:15:11 +00:00
ftnames.c * src/cache/ftccache.c (ftc_node_hash_unlink, ftc_node_hash_link) 2002-06-08 06:47:18 +00:00
ftobjs.c * docs/CHANGES: Updated. 2005-05-20 21:52:19 +00:00
ftotval.c Adding OpenType validation module. The code is based on the 2004-09-10 14:39:00 +00:00
ftoutln.c * docs/CHANGES: Updated. 2005-05-20 21:52:19 +00:00
ftpfr.c Documentation updates, whitespace. 2004-12-13 23:16:59 +00:00
ftrfork.c * src/base/ftrfork.c (raccess_guess_apple_generic): Mark 2005-05-22 20:33:09 +00:00
ftstream.c Formatting. 2005-03-16 01:49:54 +00:00
ftstroke.c Handle unsorted SFNT type 4 cmaps correctly (reported by Dirck 2005-05-09 22:11:36 +00:00
ftsynth.c * src/base/ftsynth.c (FT_GlyphSlot_Embolden): fixing a bug that produced 2005-05-21 10:42:32 +00:00
ftsystem.c * README.UNX: updated the Unix-specific quick-compilation guide to 2002-04-12 09:31:48 +00:00
fttrigon.c Various fixes for C and C++ compiling. 2005-03-03 17:09:08 +00:00
fttype1.c Add new function FT_Get_PS_Font_Private(). 2004-11-12 07:02:45 +00:00
ftutil.c * src/base/ftutil.c: Include FT_INTERNAL_OBJECTS_H. 2005-03-03 23:05:29 +00:00
ftwinfnt.c Documentation updates, whitespace. 2004-12-13 23:16:59 +00:00
ftxf86.c Documentation updates, whitespace. 2004-12-13 23:16:59 +00:00
rules.mk * src/base/rules.mk (BASE_SRC): Don't add ftsynth.c here but... 2005-05-23 12:01:39 +00:00