[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Mon Jan 7 14:47:23 PST 2013


 src/hb-buffer.cc       |    2 +-
 src/hb-buffer.h        |    2 +-
 test/api/test-buffer.c |    2 +-
 util/options.hh        |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 1172dc736280566426eb6dade1a886b2a0ca9aa4
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Jan 7 16:46:37 2013 -0600

    Rename hb_buffer_clear() to hb_buffer_clear_contents()
    
    The previous name was clashing with harfbuzz.old.  There are systems
    that need to link both...
    
    Clash-free now again.

diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc
index 4b644e4..c7860e9 100644
--- a/src/hb-buffer.cc
+++ b/src/hb-buffer.cc
@@ -790,7 +790,7 @@ hb_buffer_reset (hb_buffer_t *buffer)
 }
 
 void
-hb_buffer_clear (hb_buffer_t *buffer)
+hb_buffer_clear_contents (hb_buffer_t *buffer)
 {
   buffer->clear ();
 }
diff --git a/src/hb-buffer.h b/src/hb-buffer.h
index 48ec4a5..5386e36 100644
--- a/src/hb-buffer.h
+++ b/src/hb-buffer.h
@@ -193,7 +193,7 @@ hb_buffer_reset (hb_buffer_t *buffer);
 
 /* Like reset, but does NOT clear unicode_funcs. */
 void
-hb_buffer_clear (hb_buffer_t *buffer);
+hb_buffer_clear_contents (hb_buffer_t *buffer);
 
 /* Returns false if allocation failed */
 hb_bool_t
diff --git a/test/api/test-buffer.c b/test/api/test-buffer.c
index f826f2e..82fdaae 100644
--- a/test/api/test-buffer.c
+++ b/test/api/test-buffer.c
@@ -135,7 +135,7 @@ test_buffer_properties (fixture_t *fixture, gconstpointer user_data)
 
   /* test clear clears all properties but unicode_funcs */
 
-  hb_buffer_clear (b);
+  hb_buffer_clear_contents (b);
 
   g_assert (hb_buffer_get_unicode_funcs (b) == ufuncs);
   g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_INVALID);
diff --git a/util/options.hh b/util/options.hh
index 02af758..ad925b2 100644
--- a/util/options.hh
+++ b/util/options.hh
@@ -175,7 +175,7 @@ struct shape_options_t : option_group_t
   void populate_buffer (hb_buffer_t *buffer, const char *text, int text_len,
 			const char *text_before, const char *text_after)
   {
-    hb_buffer_clear (buffer);
+    hb_buffer_clear_contents (buffer);
     if (text_before) {
       unsigned int len = strlen (text_before);
       hb_buffer_add_utf8 (buffer, text_before, len, len, 0);



More information about the HarfBuzz mailing list