Tiny performance tweaks

darcs-hash:20060205131335-ac50b-5b1895d50334dfe9e375ab60e723d1b62b712707.gz
This commit is contained in:
axel
2006-02-05 23:13:35 +10:00
parent 0fa3c15114
commit 8e05c8bee8
3 changed files with 5 additions and 19 deletions

11
util.c
View File

@@ -907,19 +907,16 @@ void sb_append_substring( string_buffer_t *b, const wchar_t *s, size_t l )
void sb_append_char( string_buffer_t *b, wchar_t c )
{
wchar_t buff[2]=
{
c, 0
}
;
wchar_t tmp=0;
if( !b )
{
return;
}
sb_append( b, buff );
b_append( b, &c, sizeof(wchar_t) );
b_append( b, &tmp, sizeof(wchar_t) );
b->used -= sizeof(wchar_t);
}
void sb_append2( string_buffer_t *b, ... )