More iter inits

This commit is contained in:
Behdad Esfahbod 2018-09-24 18:30:50 -04:00
parent d9867497d0
commit d748dc7664
1 changed files with 6 additions and 6 deletions

View File

@ -506,21 +506,21 @@ struct hb_ot_apply_context_t :
auto_zwnj (true),
auto_zwj (true),
random (false),
random_state (1) {}
random_state (1) { init_iters (); }
inline void reinit_iters (void)
inline void init_iters (void)
{
iter_input.init (this, false);
iter_context.init (this, true);
}
inline void set_lookup_mask (hb_mask_t mask) { lookup_mask = mask; }
inline void set_auto_zwj (bool auto_zwj_) { auto_zwj = auto_zwj_; reinit_iters (); }
inline void set_auto_zwnj (bool auto_zwnj_) { auto_zwnj = auto_zwnj_; reinit_iters (); }
inline void set_lookup_mask (hb_mask_t mask) { lookup_mask = mask; init_iters (); }
inline void set_auto_zwj (bool auto_zwj_) { auto_zwj = auto_zwj_; init_iters (); }
inline void set_auto_zwnj (bool auto_zwnj_) { auto_zwnj = auto_zwnj_; init_iters (); }
inline void set_random (bool random_) { random = random_; }
inline void set_recurse_func (recurse_func_t func) { recurse_func = func; }
inline void set_lookup_index (unsigned int lookup_index_) { lookup_index = lookup_index_; }
inline void set_lookup_props (unsigned int lookup_props_) { lookup_props = lookup_props_; reinit_iters (); }
inline void set_lookup_props (unsigned int lookup_props_) { lookup_props = lookup_props_; init_iters (); }
inline uint32_t random_number (void)
{