aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2007-01-27 12:09:24 +1000
committerGravatar axel <axel@liljencrantz.se>2007-01-27 12:09:24 +1000
commitf2ccbe7374a4afbc404e3aec05648200ee253310 (patch)
tree99d804dd60e5050ee512906c25d567606eaca6e8 /complete.c
parent85241817f86aa6a0043685f4e7e31ba7be95ebe0 (diff)
Make get_desc_buff variable functions local static instead of global
darcs-hash:20070127020924-ac50b-0dfd72f6c30a82adc9500020df4b7bafb8d6dd56.gz
Diffstat (limited to 'complete.c')
-rw-r--r--complete.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/complete.c b/complete.c
index 74557b18..708fe47f 100644
--- a/complete.c
+++ b/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 );