Remove the IN_CLUSTER() macro
This commit is contained in:
parent
d63a1e089a
commit
01feb74c78
|
@ -161,7 +161,6 @@ struct _hb_buffer_t {
|
||||||
#define IN_CURGLYPH() (BUFFER->in_string[BUFFER->in_pos].codepoint)
|
#define IN_CURGLYPH() (BUFFER->in_string[BUFFER->in_pos].codepoint)
|
||||||
#define IN_NEXTGLYPH() (BUFFER->in_string[BUFFER->in_pos + 1].codepoint)
|
#define IN_NEXTGLYPH() (BUFFER->in_string[BUFFER->in_pos + 1].codepoint)
|
||||||
#define IN_CURINFO() (&BUFFER->in_string[BUFFER->in_pos])
|
#define IN_CURINFO() (&BUFFER->in_string[BUFFER->in_pos])
|
||||||
#define IN_CLUSTER(pos) (BUFFER->in_string[(pos)].cluster)
|
|
||||||
|
|
||||||
HB_END_DECLS
|
HB_END_DECLS
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ hb_form_clusters (hb_buffer_t *buffer)
|
||||||
count = buffer->in_length;
|
count = buffer->in_length;
|
||||||
for (buffer->in_pos = 1; buffer->in_pos < count; buffer->in_pos++)
|
for (buffer->in_pos = 1; buffer->in_pos < count; buffer->in_pos++)
|
||||||
if (buffer->unicode->get_general_category (IN_CURGLYPH()) == HB_CATEGORY_NON_SPACING_MARK)
|
if (buffer->unicode->get_general_category (IN_CURGLYPH()) == HB_CATEGORY_NON_SPACING_MARK)
|
||||||
IN_CLUSTER (buffer->in_pos) = IN_CLUSTER (buffer->in_pos - 1);
|
buffer->in_string[buffer->in_pos].cluster = buffer->in_string[buffer->in_pos - 1].cluster;
|
||||||
}
|
}
|
||||||
|
|
||||||
static hb_direction_t
|
static hb_direction_t
|
||||||
|
|
Loading…
Reference in New Issue