[API] Rename hb_buffer_ensure() to hb_buffer_pre_allocate()
The new name is self-documenting.
This commit is contained in:
parent
70566befc5
commit
02a534b23f
|
@ -255,7 +255,7 @@ hb_buffer_reset (hb_buffer_t *buffer)
|
||||||
}
|
}
|
||||||
|
|
||||||
hb_bool_t
|
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);
|
return _hb_buffer_ensure (buffer, size);
|
||||||
}
|
}
|
||||||
|
@ -453,7 +453,7 @@ hb_bool_t
|
||||||
hb_buffer_set_length (hb_buffer_t *buffer,
|
hb_buffer_set_length (hb_buffer_t *buffer,
|
||||||
unsigned int length)
|
unsigned int length)
|
||||||
{
|
{
|
||||||
if (!hb_buffer_ensure (buffer, length))
|
if (!_hb_buffer_ensure (buffer, length))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Wipe the new space */
|
/* Wipe the new space */
|
||||||
|
|
|
@ -107,7 +107,7 @@ void
|
||||||
hb_buffer_reset (hb_buffer_t *buffer);
|
hb_buffer_reset (hb_buffer_t *buffer);
|
||||||
|
|
||||||
hb_bool_t
|
hb_bool_t
|
||||||
hb_buffer_ensure (hb_buffer_t *buffer,
|
hb_buffer_pre_allocate (hb_buffer_t *buffer,
|
||||||
unsigned int size);
|
unsigned int size);
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue