aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/complete.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-09-21 11:24:49 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-09-22 18:08:00 -0700
commitc1bd3b5824027f23b41bbac77c5e28f856c5dc18 (patch)
treef406ad2f859df99f65c059f8c4019d5a2db1e459 /src/complete.h
parentfb615843b329b4d3c303b9cebe2af134a52b5bfd (diff)
Eliminate global variables associated with builtin IO
This change eliminates global variables like stdout_buffer. Instead we wrap up the IO information into a new struct io_streams_t, and thread that through every builtin. This makes the intent clearer, gives us a place to hang new IO data, and eliminates the ugly global state management like builtin_push_io.
Diffstat (limited to 'src/complete.h')
-rw-r--r--src/complete.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/complete.h b/src/complete.h
index 41c9c3e0..2083517e 100644
--- a/src/complete.h
+++ b/src/complete.h
@@ -213,11 +213,9 @@ void complete(const wcstring &cmd,
completion_request_flags_t flags);
/**
- Print a list of all current completions into the string.
-
- \param out The string to write completions to
+ Return a list of all current completions.
*/
-void complete_print(wcstring &out);
+wcstring complete_print();
/**
Tests if the specified option is defined for the specified command