Remove the IN_MASK() macro
This commit is contained in:
parent
89e2834dab
commit
d63a1e089a
|
@ -161,7 +161,6 @@ struct _hb_buffer_t {
|
|||
#define IN_CURGLYPH() (BUFFER->in_string[BUFFER->in_pos].codepoint)
|
||||
#define IN_NEXTGLYPH() (BUFFER->in_string[BUFFER->in_pos + 1].codepoint)
|
||||
#define IN_CURINFO() (&BUFFER->in_string[BUFFER->in_pos])
|
||||
#define IN_MASK(pos) (BUFFER->in_string[(pos)].mask)
|
||||
#define IN_CLUSTER(pos) (BUFFER->in_string[(pos)].cluster)
|
||||
|
||||
HB_END_DECLS
|
||||
|
|
|
@ -1544,7 +1544,7 @@ struct PosLookup : Lookup
|
|||
while (buffer->in_pos < buffer->in_length)
|
||||
{
|
||||
bool done;
|
||||
if (~IN_MASK (buffer->in_pos) & mask)
|
||||
if (~buffer->in_string[buffer->in_pos].mask & mask)
|
||||
{
|
||||
done = apply_once (layout, buffer, NO_CONTEXT, MAX_NESTING_LEVEL);
|
||||
ret |= done;
|
||||
|
|
|
@ -836,7 +836,7 @@ struct SubstLookup : Lookup
|
|||
buffer->in_pos = 0;
|
||||
while (buffer->in_pos < buffer->in_length)
|
||||
{
|
||||
if ((~IN_MASK (buffer->in_pos) & mask) &&
|
||||
if ((~buffer->in_string[buffer->in_pos].mask & mask) &&
|
||||
apply_once (layout, buffer, NO_CONTEXT, MAX_NESTING_LEVEL))
|
||||
ret = true;
|
||||
else
|
||||
|
@ -852,7 +852,7 @@ struct SubstLookup : Lookup
|
|||
buffer->in_pos = buffer->in_length - 1;
|
||||
do
|
||||
{
|
||||
if ((~IN_MASK (buffer->in_pos) & mask) &&
|
||||
if ((~buffer->in_string[buffer->in_pos].mask & mask) &&
|
||||
apply_once (layout, buffer, NO_CONTEXT, MAX_NESTING_LEVEL))
|
||||
ret = true;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue