|
|
|
@ -74,7 +74,7 @@ struct hb_closure_context_t : |
|
|
|
|
|
|
|
|
|
hb_closure_context_t (hb_face_t *face_, |
|
|
|
|
hb_set_t *glyphs_, |
|
|
|
|
unsigned int nesting_level_left_ = MAX_NESTING_LEVEL) : |
|
|
|
|
unsigned int nesting_level_left_ = HB_MAX_NESTING_LEVEL) : |
|
|
|
|
face (face_), |
|
|
|
|
glyphs (glyphs_), |
|
|
|
|
recurse_func (NULL), |
|
|
|
@ -196,7 +196,7 @@ struct hb_collect_glyphs_context_t : |
|
|
|
|
hb_set_t *glyphs_input, /* OUT. May be NULL */ |
|
|
|
|
hb_set_t *glyphs_after, /* OUT. May be NULL */ |
|
|
|
|
hb_set_t *glyphs_output, /* OUT. May be NULL */ |
|
|
|
|
unsigned int nesting_level_left_ = MAX_NESTING_LEVEL) : |
|
|
|
|
unsigned int nesting_level_left_ = HB_MAX_NESTING_LEVEL) : |
|
|
|
|
face (face_), |
|
|
|
|
before (glyphs_before ? glyphs_before : hb_set_get_empty ()), |
|
|
|
|
input (glyphs_input ? glyphs_input : hb_set_get_empty ()), |
|
|
|
@ -483,7 +483,7 @@ struct hb_apply_context_t : |
|
|
|
|
lookup_mask (1), |
|
|
|
|
auto_zwj (true), |
|
|
|
|
recurse_func (NULL), |
|
|
|
|
nesting_level_left (MAX_NESTING_LEVEL), |
|
|
|
|
nesting_level_left (HB_MAX_NESTING_LEVEL), |
|
|
|
|
lookup_props (0), |
|
|
|
|
gdef (*hb_ot_layout_from_face (face)->gdef), |
|
|
|
|
has_glyph_classes (gdef.has_glyph_classes ()), |
|
|
|
@ -704,13 +704,13 @@ static inline bool match_input (hb_apply_context_t *c, |
|
|
|
|
match_func_t match_func, |
|
|
|
|
const void *match_data, |
|
|
|
|
unsigned int *end_offset, |
|
|
|
|
unsigned int match_positions[MAX_CONTEXT_LENGTH], |
|
|
|
|
unsigned int match_positions[HB_MAX_CONTEXT_LENGTH], |
|
|
|
|
bool *p_is_mark_ligature = NULL, |
|
|
|
|
unsigned int *p_total_component_count = NULL) |
|
|
|
|
{ |
|
|
|
|
TRACE_APPLY (NULL); |
|
|
|
|
|
|
|
|
|
if (unlikely (count > MAX_CONTEXT_LENGTH)) return_trace (false); |
|
|
|
|
if (unlikely (count > HB_MAX_CONTEXT_LENGTH)) return_trace (false); |
|
|
|
|
|
|
|
|
|
hb_buffer_t *buffer = c->buffer; |
|
|
|
|
|
|
|
|
@ -784,7 +784,7 @@ static inline bool match_input (hb_apply_context_t *c, |
|
|
|
|
} |
|
|
|
|
static inline bool ligate_input (hb_apply_context_t *c, |
|
|
|
|
unsigned int count, /* Including the first glyph */ |
|
|
|
|
unsigned int match_positions[MAX_CONTEXT_LENGTH], /* Including the first glyph */ |
|
|
|
|
unsigned int match_positions[HB_MAX_CONTEXT_LENGTH], /* Including the first glyph */ |
|
|
|
|
unsigned int match_length, |
|
|
|
|
hb_codepoint_t lig_glyph, |
|
|
|
|
bool is_mark_ligature, |
|
|
|
@ -944,7 +944,7 @@ static inline void recurse_lookups (context_t *c, |
|
|
|
|
|
|
|
|
|
static inline bool apply_lookup (hb_apply_context_t *c, |
|
|
|
|
unsigned int count, /* Including the first glyph */ |
|
|
|
|
unsigned int match_positions[MAX_CONTEXT_LENGTH], /* Including the first glyph */ |
|
|
|
|
unsigned int match_positions[HB_MAX_CONTEXT_LENGTH], /* Including the first glyph */ |
|
|
|
|
unsigned int lookupCount, |
|
|
|
|
const LookupRecord lookupRecord[], /* Array of LookupRecords--in design order */ |
|
|
|
|
unsigned int match_length) |
|
|
|
@ -995,7 +995,7 @@ static inline bool apply_lookup (hb_apply_context_t *c, |
|
|
|
|
|
|
|
|
|
if (delta > 0) |
|
|
|
|
{ |
|
|
|
|
if (unlikely (delta + count > MAX_CONTEXT_LENGTH)) |
|
|
|
|
if (unlikely (delta + count > HB_MAX_CONTEXT_LENGTH)) |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
@ -1094,7 +1094,7 @@ static inline bool context_apply_lookup (hb_apply_context_t *c, |
|
|
|
|
ContextApplyLookupContext &lookup_context) |
|
|
|
|
{ |
|
|
|
|
unsigned int match_length = 0; |
|
|
|
|
unsigned int match_positions[MAX_CONTEXT_LENGTH]; |
|
|
|
|
unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; |
|
|
|
|
return match_input (c, |
|
|
|
|
inputCount, input, |
|
|
|
|
lookup_context.funcs.match, lookup_context.match_data, |
|
|
|
@ -1621,7 +1621,7 @@ static inline bool chain_context_apply_lookup (hb_apply_context_t *c, |
|
|
|
|
ChainContextApplyLookupContext &lookup_context) |
|
|
|
|
{ |
|
|
|
|
unsigned int match_length = 0; |
|
|
|
|
unsigned int match_positions[MAX_CONTEXT_LENGTH]; |
|
|
|
|
unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; |
|
|
|
|
return match_input (c, |
|
|
|
|
inputCount, input, |
|
|
|
|
lookup_context.funcs.match, lookup_context.match_data[1], |
|
|
|
|