mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
Initial update for new event subsystem
darcs-hash:20051005223708-ac50b-8a8d7e003e1c24747f3f154cb66b6c1a1015c35b.gz
This commit is contained in:
10
util.c
10
util.c
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user