diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-09-21 11:24:49 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-09-22 18:08:00 -0700 |
commit | c1bd3b5824027f23b41bbac77c5e28f856c5dc18 (patch) | |
tree | f406ad2f859df99f65c059f8c4019d5a2db1e459 /src/common.h | |
parent | fb615843b329b4d3c303b9cebe2af134a52b5bfd (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/common.h')
-rw-r--r-- | src/common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h index 88bbf480..ff7443e5 100644 --- a/src/common.h +++ b/src/common.h @@ -861,10 +861,10 @@ int common_get_height(); void common_handle_winch(int signal); /** - Write paragraph of output to the specified stringbuffer, and redo - the linebreaks to fit the current screen. + Write the given paragraph of output, redoing linebreaks to fit + the current screen. */ -void write_screen(const wcstring &msg, wcstring &buff); +wcstring reformat_for_screen(const wcstring &msg); /** Tokenize the specified string into the specified wcstring_list_t. |