summaryrefslogtreecommitdiff
path: root/pango/pango-ot-buffer.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-05-20 05:35:14 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-05-20 05:35:14 -0400
commit336bb3201096bdd0494d29926dd44e8cca8bed26 (patch)
tree26842c7cd2b29745e961acc6dc9b1b63b5f7dbba /pango/pango-ot-buffer.c
parent15a0220c336113a2df8de91ec0513b1bdde35a89 (diff)
downloadpango-336bb3201096bdd0494d29926dd44e8cca8bed26.tar.gz
[HB] Remove all references to the old code!
Diffstat (limited to 'pango/pango-ot-buffer.c')
-rw-r--r--pango/pango-ot-buffer.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/pango/pango-ot-buffer.c b/pango/pango-ot-buffer.c
index 5feb5a0e..10c455ee 100644
--- a/pango/pango-ot-buffer.c
+++ b/pango/pango-ot-buffer.c
@@ -24,26 +24,26 @@
#include "pango-ot-private.h"
#include "pangofc-private.h"
-/* cache a single HB_Buffer */
-static HB_Buffer cached_buffer = NULL;
+/* cache a single hb_buffer_t */
+static hb_buffer_t *cached_buffer = NULL;
G_LOCK_DEFINE_STATIC (cached_buffer);
-static HB_Buffer
+static hb_buffer_t *
acquire_buffer (gboolean *free_buffer)
{
- HB_Buffer buffer;
+ hb_buffer_t *buffer;
if (G_LIKELY (G_TRYLOCK (cached_buffer)))
{
if (G_UNLIKELY (!cached_buffer))
- hb_buffer_new (&cached_buffer);
+ cached_buffer = hb_buffer_new ();
buffer = cached_buffer;
*free_buffer = FALSE;
}
else
{
- hb_buffer_new (&buffer);
+ buffer = hb_buffer_new ();
*free_buffer = TRUE;
}
@@ -51,7 +51,7 @@ acquire_buffer (gboolean *free_buffer)
}
static void
-release_buffer (HB_Buffer buffer, gboolean free_buffer)
+release_buffer (hb_buffer_t *buffer, gboolean free_buffer)
{
if (G_LIKELY (!free_buffer))
{