Favor use of static instead HB_INTERNAL

This commit is contained in:
Ebrahim Byagowi 2018-02-11 01:00:03 +03:30 committed by Behdad Esfahbod
parent 4c5bdb4b39
commit 203b647530
3 changed files with 7 additions and 7 deletions

View File

@ -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<unsigned int> &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<unsigned int> &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<hb_codepoint_t>&glyphs_to_retain,

View File

@ -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<hb_codepoint_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<hb_codepoint_t>& codepoints,
hb_prealloced_array_t<hb_codepoint_t>& old_gids,

View File

@ -107,7 +107,7 @@ hb_subset_input_destroy(hb_subset_input_t *subset_input)
}
template<typename TableType>
HB_INTERNAL hb_blob_t *
static hb_blob_t *
_subset (hb_subset_plan_t *plan, hb_face_t *source)
{
OT::Sanitizer<TableType> sanitizer;