From 02a534b23f2d1e7475109563b9f61221ed020e8b Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 15 Apr 2011 18:34:45 -0400 Subject: [PATCH] [API] Rename hb_buffer_ensure() to hb_buffer_pre_allocate() The new name is self-documenting. --- src/hb-buffer.cc | 4 ++-- src/hb-buffer.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 596d38c3b..11639efce 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -255,7 +255,7 @@ hb_buffer_reset (hb_buffer_t *buffer) } hb_bool_t -hb_buffer_ensure (hb_buffer_t *buffer, unsigned int size) +hb_buffer_pre_allocate (hb_buffer_t *buffer, unsigned int size) { return _hb_buffer_ensure (buffer, size); } @@ -453,7 +453,7 @@ hb_bool_t hb_buffer_set_length (hb_buffer_t *buffer, unsigned int length) { - if (!hb_buffer_ensure (buffer, length)) + if (!_hb_buffer_ensure (buffer, length)) return FALSE; /* Wipe the new space */ diff --git a/src/hb-buffer.h b/src/hb-buffer.h index 3c0a442fd..0c3ef3a31 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -107,8 +107,8 @@ void hb_buffer_reset (hb_buffer_t *buffer); hb_bool_t -hb_buffer_ensure (hb_buffer_t *buffer, - unsigned int size); +hb_buffer_pre_allocate (hb_buffer_t *buffer, + unsigned int size); void hb_buffer_reverse (hb_buffer_t *buffer);