Some cleanup of completions in preparation for more multithreading

This commit is contained in:
ridiculousfish
2012-02-26 13:27:31 -08:00
parent 8f637975a4
commit b30090f946
5 changed files with 124 additions and 438 deletions

View File

@@ -198,7 +198,7 @@ enum complete_type_t {
\param flags A set of completion flags
*/
void complete_add( const wchar_t *cmd,
int cmd_type,
bool cmd_is_path,
wchar_t short_opt,
const wchar_t *long_opt,
int long_mode,
@@ -212,22 +212,19 @@ void complete_add( const wchar_t *cmd,
true, any options not matching one of the provided options will be
flagged as an error by syntax highlighting.
*/
void complete_set_authoritative( const wchar_t *cmd,
int cmd_type,
int authoritative );
void complete_set_authoritative( const wchar_t *cmd, bool cmd_type, bool authoritative );
/**
Remove a previously defined completion
*/
void complete_remove( const wchar_t *cmd,
int cmd_type,
bool cmd_is_path,
wchar_t short_opt,
const wchar_t *long_opt );
/** Find all completions of the command cmd, insert them into out. */
void complete( const wchar_t* cmd, std::vector<completion_t> &out, complete_type_t type);
void complete2( const wcstring &cmd, std::vector<completion_t> &comp, complete_type_t type );
void complete( const wcstring &cmd, std::vector<completion_t> &comp, complete_type_t type );
/**
Print a list of all current completions into the string_buffer_t.