[substitute-closure] Rename function for clarity

This commit is contained in:
Behdad Esfahbod 2018-06-11 23:24:41 -04:00
parent 7b5ce41638
commit ba0ea56efa
2 changed files with 3 additions and 3 deletions

View File

@ -1159,7 +1159,7 @@ struct SubstLookup : Lookup
inline hb_closure_context_t::return_t closure (hb_closure_context_t *c, unsigned int this_index) const
{
TRACE_CLOSURE (this);
if (!c->start_lookup (this_index))
if (!c->should_visit_lookup (this_index))
return_trace (HB_VOID);
c->set_recurse_func (dispatch_closure_recurse_func);
@ -1263,7 +1263,7 @@ struct SubstLookup : Lookup
static inline hb_closure_context_t::return_t dispatch_closure_recurse_func (hb_closure_context_t *c, unsigned int lookup_index)
{
if (!c->start_lookup (lookup_index))
if (!c->should_visit_lookup (lookup_index))
return HB_VOID;
return dispatch_recurse_func (c, lookup_index);
}

View File

@ -60,7 +60,7 @@ struct hb_closure_context_t :
return HB_VOID;
}
bool start_lookup (unsigned int lookup_index)
bool should_visit_lookup (unsigned int lookup_index)
{
if (is_lookup_done (lookup_index))
return false;