Fix HB_NO_SHAPER HB_NO_OT_SHAPE build
This commit is contained in:
parent
015aecfcdd
commit
42da7da5ef
|
@ -117,7 +117,7 @@ hb_shape_plan_key_t::init (bool copy,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const hb_shaper_entry_t *shapers = _hb_shapers_get ();
|
const HB_UNUSED hb_shaper_entry_t *shapers = _hb_shapers_get ();
|
||||||
for (unsigned int i = 0; i < HB_SHAPERS_COUNT; i++)
|
for (unsigned int i = 0; i < HB_SHAPERS_COUNT; i++)
|
||||||
if (false)
|
if (false)
|
||||||
;
|
;
|
||||||
|
|
|
@ -64,7 +64,7 @@ static struct hb_shapers_lazy_loader_t : hb_lazy_loader_t<hb_shaper_entry_t,
|
||||||
if (!end)
|
if (!end)
|
||||||
end = p + strlen (p);
|
end = p + strlen (p);
|
||||||
|
|
||||||
for (unsigned int j = i; j < ARRAY_LENGTH (_hb_all_shapers); j++)
|
for (unsigned int j = i; j < ARRAY_LENGTH_CONST (_hb_all_shapers); j++)
|
||||||
if (end - p == (int) strlen (shapers[j].name) &&
|
if (end - p == (int) strlen (shapers[j].name) &&
|
||||||
0 == strncmp (shapers[j].name, p, end - p))
|
0 == strncmp (shapers[j].name, p, end - p))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue