提交 ba0ea56e 编写于 作者: B Behdad Esfahbod

[substitute-closure] Rename function for clarity

上级 7b5ce416
...@@ -1159,7 +1159,7 @@ struct SubstLookup : Lookup ...@@ -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 inline hb_closure_context_t::return_t closure (hb_closure_context_t *c, unsigned int this_index) const
{ {
TRACE_CLOSURE (this); TRACE_CLOSURE (this);
if (!c->start_lookup (this_index)) if (!c->should_visit_lookup (this_index))
return_trace (HB_VOID); return_trace (HB_VOID);
c->set_recurse_func (dispatch_closure_recurse_func); c->set_recurse_func (dispatch_closure_recurse_func);
...@@ -1263,7 +1263,7 @@ struct SubstLookup : Lookup ...@@ -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) 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 HB_VOID;
return dispatch_recurse_func (c, lookup_index); return dispatch_recurse_func (c, lookup_index);
} }
......
...@@ -60,7 +60,7 @@ struct hb_closure_context_t : ...@@ -60,7 +60,7 @@ struct hb_closure_context_t :
return HB_VOID; return HB_VOID;
} }
bool start_lookup (unsigned int lookup_index) bool should_visit_lookup (unsigned int lookup_index)
{ {
if (is_lookup_done (lookup_index)) if (is_lookup_done (lookup_index))
return false; return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册