Al-Qurtas-Islamic-bank-The-.../src
Werner Lemberg 9079c5d91a Provide C++ versions for public macros with casts.
Many FreeType clients use C++.  However `g++ -Wold-style-cast` warns for
macros with C-style casts even for system header files; this also affects
directories included with `-isystem`.  While this could be seen as a problem
with g++, the problem is more a philosophical one: Over the time, C and C++
diverged more and more, and some features of C are no longer the 'right'
solution in C++.

* include/freetype/config/public-macros.h (FT_STATIC_CAST,
FT_REINTERPRET_CAST): New macros.

* include/freetype/freetype.h (FT_ENC_TAG, FT_LOAD_TARGET_,
FT_LOAD_TARGET_MODE): Use `FT_STATIC_CAST`.
Correctly handle negative 'signed char' input.
* include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto.
* include/freetype/fttypes.h (FT_MAKE_TAG, FT_BOOL): Ditto.
* include/freetype/ftmodapi.h (FT_FACE_DRIVER_NAME): Use
`FT_REINTERPRET_CAST`.

* src/smooth/ftgrays.c (FT_STATIC_CAST)[STANDALONE_]: New macro.
[!STANDALONE]: Include `FT_CONFIG_CONFIG_H`.

Fixes #1116.
2021-11-18 19:28:07 +00:00
..
autofit * src/autofit/afhints.c (af_glyph_hints_reload): Decrease casting. 2021-09-30 22:59:04 -04:00
base Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
bdf [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00
bzip2 Replace boolean allocation macros with MEM ones. 2021-09-14 21:32:43 -04:00
cache Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
cff Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
cid [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00
dlg [dlg] Define DLG_STATIC explicitly. 2021-11-07 10:20:16 -05:00
gxvalid Fix clang warnings. 2021-11-14 11:02:54 +01:00
gzip Replace boolean allocation macros with MEM ones. 2021-09-14 21:32:43 -04:00
lzw s/0/NULL/ where appropriate. 2021-09-01 21:37:21 -04:00
otvalid * src/gxvalid.*, src/otvalid.*: Fix `-Wformat` warnings. 2021-11-08 11:44:02 +01:00
pcf [pcf] Zero out the allocated properties. 2021-10-18 20:35:28 -04:00
pfr [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00
psaux Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
pshinter [pshinter] Fix C++ compilation. 2021-11-08 09:41:54 +01:00
psnames Replace boolean allocation macros with MEM ones. 2021-09-14 21:32:43 -04:00
raster Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
sdf Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
sfnt [sfnt] Avoid undefined shifts in `COLR` v1 paint parsing 2021-11-13 06:48:23 +00:00
smooth Provide C++ versions for public macros with casts. 2021-11-18 19:28:07 +00:00
tools * src/tools/apinames.c: Facilitate OpenVMS linker options. 2021-09-29 22:17:31 -04:00
truetype [truetype] Updates for the forthcoming OpenType 1.9 standard (2/2). 2021-11-16 20:13:58 +00:00
type1 Fix clang warnings. 2021-11-14 11:02:54 +01:00
type42 Add a comment. 2021-06-15 22:49:21 -04:00
winfonts [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00