提交 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 ) ...@@ -111,20 +111,12 @@ hb_buffer_new( HB_Buffer *pbuffer )
if ( ALLOC( buffer, sizeof( HB_BufferRec ) ) ) if ( ALLOC( buffer, sizeof( HB_BufferRec ) ) )
return error; return error;
/* not these ones */
buffer->allocated = 0; buffer->allocated = 0;
buffer->in_string = NULL; buffer->in_string = NULL;
buffer->alt_string = NULL; buffer->alt_string = NULL;
buffer->positions = NULL; buffer->positions = NULL;
/* these should be reset when reusing buffer */ hb_buffer_clear( 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;
*pbuffer = buffer; *pbuffer = buffer;
...@@ -150,6 +142,7 @@ hb_buffer_clear( HB_Buffer buffer ) ...@@ -150,6 +142,7 @@ hb_buffer_clear( HB_Buffer buffer )
buffer->out_pos = 0; buffer->out_pos = 0;
buffer->out_string = buffer->in_string; buffer->out_string = buffer->in_string;
buffer->separate_out = FALSE; buffer->separate_out = FALSE;
buffer->max_ligID = 0;
} }
void void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册