From 66ac2ff32e24f0d5658ca172147613081a133847 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 13 Nov 2012 16:26:32 -0800 Subject: [PATCH] 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. --- src/hb-buffer-private.hh | 1 - src/hb-buffer.cc | 8 +++----- src/hb-buffer.h | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/hb-buffer-private.hh b/src/hb-buffer-private.hh index 6cfb115..6c1f3a3 100644 --- a/src/hb-buffer-private.hh +++ b/src/hb-buffer-private.hh @@ -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); diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index b770144..7a8cb15 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -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 */ diff --git a/src/hb-buffer.h b/src/hb-buffer.h index 533bac8..0b16391 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -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 -- 2.7.4