mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Make get_desc_buff variable functions local static instead of global
darcs-hash:20070127020924-ac50b-0dfd72f6c30a82adc9500020df4b7bafb8d6dd56.gz
This commit is contained in:
10
complete.c
10
complete.c
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user