提交 0b032549 编写于 作者: B Behdad Esfahbod 提交者: Behdad Esfahbod

Some more cleanup.

2007-10-11  Behdad Esfahbod  <behdad@gnome.org>

        * pango/opentype/harfbuzz-buffer.c: Some more cleanup.
上级 7a268643
......@@ -111,20 +111,12 @@ hb_buffer_new( HB_Buffer *pbuffer )
if ( ALLOC( buffer, sizeof( HB_BufferRec ) ) )
return error;
/* not these ones */
buffer->allocated = 0;
buffer->in_string = NULL;
buffer->alt_string = NULL;
buffer->positions = NULL;
/* these should be reset when reusing buffer */
buffer->in_length = 0;
buffer->out_length = 0;
buffer->in_pos = 0;
buffer->out_pos = 0;
buffer->separate_out = FALSE;
buffer->out_string = buffer->in_string;
buffer->max_ligID = 0;
hb_buffer_clear( buffer );
*pbuffer = buffer;
......@@ -150,6 +142,7 @@ hb_buffer_clear( HB_Buffer buffer )
buffer->out_pos = 0;
buffer->out_string = buffer->in_string;
buffer->separate_out = FALSE;
buffer->max_ligID = 0;
}
void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册