Make get_desc_buff variable functions local static instead of global

darcs-hash:20070127020924-ac50b-0dfd72f6c30a82adc9500020df4b7bafb8d6dd56.gz
This commit is contained in:
axel 2007-01-27 12:09:24 +10:00
parent 85241817f8
commit f2ccbe7374

View file

@ -229,11 +229,6 @@ static hash_table_t *suffix_hash=0;
*/
static hash_table_t *condition_cache=0;
/**
String buffer used by complete_get_desc
*/
static string_buffer_t *get_desc_buff=0;
static void complete_free_entry( complete_entry_t *c );
static void clear_hash_entry( void *key, void *data );
@ -267,7 +262,8 @@ static void complete_destroy()
}
/**
Make sure complete_destroy is called on exit
The init function for the completion code. Currently, all it really
does is make sure complete_destroy is called on exit.
*/
static void complete_init()
{
@ -974,6 +970,8 @@ static const wchar_t *complete_get_desc_suffix( const wchar_t *suff_orig )
const wchar_t *complete_get_desc( const wchar_t *filename )
{
static string_buffer_t *get_desc_buff=0;
struct stat buf;
CHECK( filename, 0 );