aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.h
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-01-16 22:26:47 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-01-16 22:26:47 +0530
commit140ead65b6a7051a8737623b7201f5b5a07d55d9 (patch)
treeb93cb8f9936db93ae37030272f6d2c5205097987 /expand.h
parentf3e2d2f68f14120e298fb1d50be89fa5e83c9222 (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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/expand.h b/expand.h
index 82fdc688..b9878b22 100644
--- a/expand.h
+++ b/expand.h
@@ -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 );
/**