From f85faee9b3cb841ea977403945e2c877ab32b97a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 19 Apr 2011 00:38:01 -0400 Subject: [PATCH] [API] Rename hb_buffer_add_glyph() to hb_buffer_add() --- src/hb-buffer.cc | 10 +++++----- src/hb-buffer.h | 8 ++++---- test/test-buffer.c | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 68ef59435..2f7a173e3 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -267,10 +267,10 @@ hb_buffer_allocation_successful (hb_buffer_t *buffer) } void -hb_buffer_add_glyph (hb_buffer_t *buffer, - hb_codepoint_t codepoint, - hb_mask_t mask, - unsigned int cluster) +hb_buffer_add (hb_buffer_t *buffer, + hb_codepoint_t codepoint, + hb_mask_t mask, + unsigned int cluster) { hb_glyph_info_t *glyph; @@ -572,7 +572,7 @@ hb_buffer_reverse_clusters (hb_buffer_t *buffer) hb_codepoint_t u; \ const T *old_next = next; \ next = UTF_NEXT (next, end, u); \ - hb_buffer_add_glyph (buffer, u, 1, old_next - (const T *) text); \ + hb_buffer_add (buffer, u, 1, old_next - (const T *) text); \ } \ } HB_STMT_END diff --git a/src/hb-buffer.h b/src/hb-buffer.h index c22e31d32..d12faf8ea 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -126,10 +126,10 @@ hb_buffer_reverse_clusters (hb_buffer_t *buffer); /* Filling the buffer in */ void -hb_buffer_add_glyph (hb_buffer_t *buffer, - hb_codepoint_t codepoint, - hb_mask_t mask, - unsigned int cluster); +hb_buffer_add (hb_buffer_t *buffer, + hb_codepoint_t codepoint, + hb_mask_t mask, + unsigned int cluster); void hb_buffer_add_utf8 (hb_buffer_t *buffer, diff --git a/test/test-buffer.c b/test/test-buffer.c index 952251551..464ec891c 100644 --- a/test/test-buffer.c +++ b/test/test-buffer.c @@ -68,7 +68,7 @@ fixture_init (Fixture *fixture, gconstpointer user_data) case BUFFER_ONE_BY_ONE: for (i = 1; i < G_N_ELEMENTS (utf32) - 1; i++) - hb_buffer_add_glyph (fixture->b, utf32[i], 1, i); + hb_buffer_add (fixture->b, utf32[i], 1, i); break; case BUFFER_UTF32: