diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-16 22:26:47 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-16 22:26:47 +0530 |
commit | 140ead65b6a7051a8737623b7201f5b5a07d55d9 (patch) | |
tree | b93cb8f9936db93ae37030272f6d2c5205097987 /expand.h | |
parent | f3e2d2f68f14120e298fb1d50be89fa5e83c9222 (diff) |
Converted all auto completion calls (on pressing tab) to use std::vector<completion_t>, bugs are yet to be fixed
Diffstat (limited to 'expand.h')
-rw-r--r-- | expand.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -65,6 +65,8 @@ */ #define EXPAND_RESERVED_END 0xf000f +struct completion_t; + enum { /** Character represeting a home directory */ @@ -146,7 +148,7 @@ enum \return One of EXPAND_OK, EXPAND_ERROR, EXPAND_WILDCARD_MATCH and EXPAND_WILDCARD_NO_MATCH. EXPAND_WILDCARD_NO_MATCH and EXPAND_WILDCARD_MATCH are normal exit conditions used only on strings containing wildcards to tell if the wildcard produced any matches. */ __warn_unused int expand_string( void *context, wchar_t *in, array_list_t *out, int flag ); -__warn_unused int expand_string2( const wcstring &input, std::list<wcstring> &output, int flag ); +__warn_unused int expand_string2( const wcstring &input, std::vector<completion_t> &output, int flag ); /** |