aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.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 /reader.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 'reader.h')
-rw-r--r--reader.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/reader.h b/reader.h
index 1bd50054..22cc3f37 100644
--- a/reader.h
+++ b/reader.h
@@ -9,11 +9,14 @@
#ifndef FISH_READER_H
#define FISH_READER_H
+#include <vector>
#include <wchar.h>
#include "util.h"
#include "io.h"
+struct completion_t;
+
/**
Read commands from \c fd until encountering EOF
*/
@@ -123,7 +126,7 @@ void reader_pop();
- The command to be completed as a null terminated array of wchar_t
- An array_list_t in which completions will be inserted.
*/
-void reader_set_complete_function( void (*f)( const wchar_t *, array_list_t * ) );
+void reader_set_complete_function( void (*f)( const wchar_t *, std::vector<completion_t> & ) );
/**
<<<<<<< upstream