Al-Qurtas-Islamic-bank-The-.../src
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
..
autofit Handle unsorted SFNT type 4 cmaps correctly (reported by Dirck 2005-05-09 22:11:36 +00:00
base * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk 2005-05-23 21:33:02 +00:00
bdf * src/base/ftrfork.c (raccess_guess_apple_generic): Mark 2005-05-22 20:33:09 +00:00
cache * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk 2005-05-23 21:33:02 +00:00
cff Handle unsorted SFNT type 4 cmaps correctly (reported by Dirck 2005-05-09 22:11:36 +00:00
cid * src/base/ftrfork.c (raccess_guess_apple_generic): Mark 2005-05-22 20:33:09 +00:00
gzip Formatting. 2005-03-16 01:49:54 +00:00
lzw Handle unsorted SFNT type 4 cmaps correctly (reported by Dirck 2005-05-09 22:11:36 +00:00
otvalid * builds/win32/visualc/freetype.vcproj: Updated. 2005-05-17 20:35:23 +00:00
pcf * Jamfile: removing otvalid from the list of compiled modules 2005-05-01 10:11:32 +00:00
pfr * src/base/ftutil.c: Include FT_INTERNAL_OBJECTS_H. 2005-03-03 23:05:29 +00:00
psaux * src/type1/t1load.c (read_binary_data): Return more meaningful 2005-02-13 21:42:42 +00:00
pshinter src/pshinter/pshalgo.c (ps_hints_apply): Change scaling values only 2005-04-09 09:50:39 +00:00
psnames * src/tools/glnames.py: Formatted. 2005-03-10 06:28:07 +00:00
raster * include/freetype/ftimage.h (FT_Raster_Params), 2005-05-20 06:22:20 +00:00
sfnt * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk 2005-05-23 21:33:02 +00:00
smooth * include/freetype/ftimage.h (FT_Raster_Params), 2005-05-20 06:22:20 +00:00
tools Improving comment. 2005-03-11 09:14:21 +00:00
truetype * src/base/ftrfork.c (raccess_guess_apple_generic): Mark 2005-05-22 20:33:09 +00:00
type1 * src/type1/t1load.c (parse_charstrings): Catch this non-standard 2005-04-14 11:43:40 +00:00
type42 * docs/CHANGES: Updated. 2005-05-20 21:52:19 +00:00
winfonts * builds/unix/configure.ac: Add `-fno-strict-aliasing' if gcc is 2004-11-17 08:19:27 +00:00
Jamfile 2002-11-05 David Turner <david@freetype.org> 2002-11-06 22:32:54 +00:00