2007-10-11 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/harfbuzz-buffer.c: Some more cleanup.
svn path=/trunk/; revision=2437
2007-10-11 Behdad Esfahbod <behdad@gnome.org>
+ * pango/opentype/harfbuzz-buffer.c: Some more cleanup.
+
+2007-10-11 Behdad Esfahbod <behdad@gnome.org>
+
* pango/opentype/harfbuzz-buffer.c: Move some code around.
2007-10-11 Behdad Esfahbod <behdad@gnome.org>
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;
buffer->out_pos = 0;
buffer->out_string = buffer->in_string;
buffer->separate_out = FALSE;
+ buffer->max_ligID = 0;
}
void