diff options
author | Werner Lemberg <wl@gnu.org> | 2023-02-07 07:37:07 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2023-02-08 21:09:30 +0100 |
commit | 37bc7c260401e7e34b77d9e04d4c32bf760e1672 (patch) | |
tree | 179789fb20552d0dae82d719899259df006ef383 /src/autofit/ft-hb.c | |
parent | da9eb9c719bb128cb2e13c7cc9a7ded4abce448d (diff) | |
download | freetype2-37bc7c260401e7e34b77d9e04d4c32bf760e1672.tar.gz |
Avoid reserved identifiers that are globally defined.
This is mandated by the C99 standard, and clang 15 produces zillions of
warnings otherwise.
* devel/ftoption.h, include/freetype/config/ftoption.h,
include/freetype/internal/ftmemory.h, src/autofit/afhints.h,
src/autofit/afmodule.c, src/autofit/aftypes.h, src/base/ftadvanc.c,
src/base/ftdbgmem.c, src/base/ftstream.c, src/bdf/bdflib.c,
src/truetype/ttinterp.c: Replace identifiers of the form `_foo` with `foo_`.
Diffstat (limited to 'src/autofit/ft-hb.c')
-rw-r--r-- | src/autofit/ft-hb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/autofit/ft-hb.c b/src/autofit/ft-hb.c index 7ba1bfa55..260ebdc1b 100644 --- a/src/autofit/ft-hb.c +++ b/src/autofit/ft-hb.c @@ -36,7 +36,7 @@ */ static hb_blob_t * -_hb_ft_reference_table (hb_face_t *face, hb_tag_t tag, void *user_data) +hb_ft_reference_table_ (hb_face_t *face, hb_tag_t tag, void *user_data) { FT_Face ft_face = (FT_Face) user_data; FT_Byte *buffer; @@ -68,7 +68,7 @@ _hb_ft_reference_table (hb_face_t *face, hb_tag_t tag, void *user_data) } static hb_face_t * -_hb_ft_face_create (FT_Face ft_face, +hb_ft_face_create_ (FT_Face ft_face, hb_destroy_func_t destroy) { hb_face_t *face; @@ -83,7 +83,7 @@ _hb_ft_face_create (FT_Face ft_face, face = hb_face_create (blob, ft_face->face_index); hb_blob_destroy (blob); } else { - face = hb_face_create_for_tables (_hb_ft_reference_table, ft_face, destroy); + face = hb_face_create_for_tables (hb_ft_reference_table_, ft_face, destroy); } hb_face_set_index (face, ft_face->face_index); @@ -93,13 +93,13 @@ _hb_ft_face_create (FT_Face ft_face, } hb_font_t * -_hb_ft_font_create (FT_Face ft_face, +hb_ft_font_create_ (FT_Face ft_face, hb_destroy_func_t destroy) { hb_font_t *font; hb_face_t *face; - face = _hb_ft_face_create (ft_face, destroy); + face = hb_ft_face_create_ (ft_face, destroy); font = hb_font_create (face); hb_face_destroy (face); return font; |