From 203b647530b1550388bb3ce2f67e3b17e019d3e4 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sun, 11 Feb 2018 01:00:03 +0330 Subject: [PATCH] Favor use of static instead HB_INTERNAL --- src/hb-subset-glyf.cc | 8 ++++---- src/hb-subset-plan.cc | 4 ++-- src/hb-subset.cc | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/hb-subset-glyf.cc b/src/hb-subset-glyf.cc index 31358e81..fd8f7de2 100644 --- a/src/hb-subset-glyf.cc +++ b/src/hb-subset-glyf.cc @@ -29,7 +29,7 @@ #include "hb-set.h" #include "hb-subset-glyf.hh" -HB_INTERNAL bool +static bool _calculate_glyf_and_loca_prime_size (const OT::glyf::accelerator_t &glyf, hb_prealloced_array_t &glyph_ids, bool *use_short_loca, /* OUT */ @@ -63,7 +63,7 @@ _calculate_glyf_and_loca_prime_size (const OT::glyf::accelerator_t &glyf, return true; } -HB_INTERNAL void +static void _write_loca_entry (unsigned int id, unsigned int offset, bool is_short, void *loca_prime) { if (is_short) { ((OT::HBUINT16*) loca_prime) [id].set (offset / 2); @@ -72,7 +72,7 @@ _write_loca_entry (unsigned int id, unsigned int offset, bool is_short, void *lo } } -HB_INTERNAL bool +static bool _write_glyf_and_loca_prime (const OT::glyf::accelerator_t &glyf, const char *glyf_data, hb_prealloced_array_t &glyph_ids, @@ -109,7 +109,7 @@ _write_glyf_and_loca_prime (const OT::glyf::accelerator_t &glyf, return true; } -HB_INTERNAL bool +static bool _hb_subset_glyf_and_loca (const OT::glyf::accelerator_t &glyf, const char *glyf_data, hb_prealloced_array_t&glyphs_to_retain, diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index 830047f5..7f4448bf 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -53,7 +53,7 @@ hb_subset_plan_new_gid_for_old_id (hb_subset_plan_t *plan, return false; } -HB_INTERNAL void +static void _populate_codepoints (hb_set_t *input_codepoints, hb_prealloced_array_t& plan_codepoints) { @@ -66,7 +66,7 @@ _populate_codepoints (hb_set_t *input_codepoints, plan_codepoints.qsort (_hb_codepoint_t_cmp); } -HB_INTERNAL void +static void _populate_gids_to_retain (hb_face_t *face, hb_prealloced_array_t& codepoints, hb_prealloced_array_t& old_gids, diff --git a/src/hb-subset.cc b/src/hb-subset.cc index 40f175d9..94600617 100644 --- a/src/hb-subset.cc +++ b/src/hb-subset.cc @@ -107,7 +107,7 @@ hb_subset_input_destroy(hb_subset_input_t *subset_input) } template -HB_INTERNAL hb_blob_t * +static hb_blob_t * _subset (hb_subset_plan_t *plan, hb_face_t *source) { OT::Sanitizer sanitizer; -- GitLab