aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-21 19:58:38 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-21 19:58:38 +1000
commitbf333f2a84a1895fe056d213250691e37416e7f7 (patch)
tree13ea9c5335bf96bfb1fd7d1cbe7f17944c61a817 /common.c
parent3ddd5e59810d0d1642a061a6342811a8be7a5251 (diff)
Remove common_init and common_destroy. Use halloc instead.
darcs-hash:20060621095838-ac50b-e4349a0ab02696cead5397efce3792c9d56c2d15.gz
Diffstat (limited to 'common.c')
-rw-r--r--common.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/common.c b/common.c
index 118edcb8..4eb40095 100644
--- a/common.c
+++ b/common.c
@@ -92,20 +92,6 @@ static struct winsize termsize;
*/
static string_buffer_t *setlocale_buff=0;
-void common_destroy()
-{
-
- if( setlocale_buff )
- {
- sb_destroy( setlocale_buff );
- free( setlocale_buff );
- }
-}
-
-void common_init()
-{
-}
-
wchar_t **list_to_char_arr( array_list_t *l )
{
wchar_t ** res = malloc( sizeof(wchar_t *)*(al_get_count( l )+1) );
@@ -479,8 +465,7 @@ const wchar_t *wsetlocale(int category, const wchar_t *locale)
if( !setlocale_buff )
{
- setlocale_buff = malloc( sizeof(string_buffer_t) );
- sb_init( setlocale_buff);
+ setlocale_buff = sb_halloc( global_context);
}
sb_clear( setlocale_buff );