Initial update for new event subsystem

darcs-hash:20051005223708-ac50b-8a8d7e003e1c24747f3f154cb66b6c1a1015c35b.gz
This commit is contained in:
axel
2005-10-06 08:37:08 +10:00
parent b065bd6282
commit b9b841f603
23 changed files with 842 additions and 425 deletions

10
util.c
View File

@@ -810,6 +810,16 @@ void sb_init( string_buffer_t * b)
b->used -= sizeof(wchar_t);
}
string_buffer_t *sb_new()
{
string_buffer_t *res = malloc( sizeof( string_buffer_t ) );
if( !res )
die_mem();
sb_init( res );
return res;
}
void sb_append( string_buffer_t *b, const wchar_t * s)
{
// fwprintf( stderr, L"Append string \'%ls\'\n", s );