提交 203b6475 编写于 作者: E Ebrahim Byagowi 提交者: Behdad Esfahbod

Favor use of static instead HB_INTERNAL

上级 4c5bdb4b
......@@ -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,
......
......@@ -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,
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册