提交 02a534b2 编写于 作者: R Ryan Lortie 提交者: Behdad Esfahbod

[API] Rename hb_buffer_ensure() to hb_buffer_pre_allocate()

The new name is self-documenting.
上级 70566bef
......@@ -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 */
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册