From c1bd3b5824027f23b41bbac77c5e28f856c5dc18 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 21 Sep 2015 11:24:49 -0700 Subject: 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. --- src/complete.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/complete.h') 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 -- cgit v1.2.3