API change: Remove "mask" from hb_buffer_add()
I don't expect anybody using hb_buffer_add(), so this shouldn't break anyone's code.
This commit is contained in:
parent
407f80d625
commit
66ac2ff32e
|
@ -146,7 +146,6 @@ struct hb_buffer_t {
|
|||
HB_INTERNAL void deallocate_var_all (void);
|
||||
|
||||
HB_INTERNAL void add (hb_codepoint_t codepoint,
|
||||
hb_mask_t mask,
|
||||
unsigned int cluster);
|
||||
|
||||
HB_INTERNAL void reverse_range (unsigned int start, unsigned int end);
|
||||
|
|
|
@ -175,7 +175,6 @@ hb_buffer_t::clear (void)
|
|||
|
||||
void
|
||||
hb_buffer_t::add (hb_codepoint_t codepoint,
|
||||
hb_mask_t mask,
|
||||
unsigned int cluster)
|
||||
{
|
||||
hb_glyph_info_t *glyph;
|
||||
|
@ -186,7 +185,7 @@ hb_buffer_t::add (hb_codepoint_t codepoint,
|
|||
|
||||
memset (glyph, 0, sizeof (*glyph));
|
||||
glyph->codepoint = codepoint;
|
||||
glyph->mask = mask;
|
||||
glyph->mask = 1;
|
||||
glyph->cluster = cluster;
|
||||
|
||||
len++;
|
||||
|
@ -770,10 +769,9 @@ hb_buffer_allocation_successful (hb_buffer_t *buffer)
|
|||
void
|
||||
hb_buffer_add (hb_buffer_t *buffer,
|
||||
hb_codepoint_t codepoint,
|
||||
hb_mask_t mask,
|
||||
unsigned int cluster)
|
||||
{
|
||||
buffer->add (codepoint, mask, cluster);
|
||||
buffer->add (codepoint, cluster);
|
||||
buffer->clear_context (1);
|
||||
}
|
||||
|
||||
|
@ -902,7 +900,7 @@ hb_buffer_add_utf (hb_buffer_t *buffer,
|
|||
hb_codepoint_t u;
|
||||
const T *old_next = next;
|
||||
next = hb_utf_next (next, end, &u);
|
||||
buffer->add (u, 1, old_next - (const T *) text);
|
||||
buffer->add (u, old_next - (const T *) text);
|
||||
}
|
||||
|
||||
/* Add post-context */
|
||||
|
|
|
@ -177,7 +177,6 @@ hb_buffer_guess_properties (hb_buffer_t *buffer);
|
|||
void
|
||||
hb_buffer_add (hb_buffer_t *buffer,
|
||||
hb_codepoint_t codepoint,
|
||||
hb_mask_t mask,
|
||||
unsigned int cluster);
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue