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/input.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input.h') diff --git a/src/input.h b/src/input.h index 9f627db4..36d49a51 100644 --- a/src/input.h +++ b/src/input.h @@ -137,7 +137,7 @@ void input_mapping_add(const wchar_t *sequence, const wchar_t *command, const wchar_t *mode = DEFAULT_BIND_MODE, const wchar_t *new_mode = DEFAULT_BIND_MODE); -void input_mapping_add(const wchar_t *sequence, const wchar_t **commands, size_t commands_len, +void input_mapping_add(const wchar_t *sequence, const wchar_t * const *commands, size_t commands_len, const wchar_t *mode = DEFAULT_BIND_MODE, const wchar_t *new_mode = DEFAULT_BIND_MODE); struct input_mapping_name_t { -- cgit v1.2.3