aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r--src/nvim/os/input.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c
index 504aeafbc1..58bdf0cf52 100644
--- a/src/nvim/os/input.c
+++ b/src/nvim/os/input.c
@@ -32,20 +32,20 @@ static bool eof = false, started_reading = false;
// Helper function used to push bytes from the 'event' key sequence partially
// between calls to os_inchar when maxlen < 3
-void input_init()
+void input_init(void)
{
read_stream = rstream_new(read_cb, READ_BUFFER_SIZE, NULL, false);
rstream_set_file(read_stream, read_cmd_fd);
}
// Listen for input
-void input_start()
+void input_start(void)
{
rstream_start(read_stream);
}
// Stop listening for input
-void input_stop()
+void input_stop(void)
{
rstream_stop(read_stream);
}
@@ -105,14 +105,14 @@ int os_inchar(uint8_t *buf, int maxlen, int32_t ms, int tb_change_cnt)
}
// Check if a character is available for reading
-bool os_char_avail()
+bool os_char_avail(void)
{
return inbuf_poll(0) == kInputAvail;
}
// Check for CTRL-C typed by reading all available characters.
// In cooked mode we should get SIGINT, no need to check.
-void os_breakcheck()
+void os_breakcheck(void)
{
if (curr_tmode == TMODE_RAW && input_poll(0))
fill_input_buf(false);
@@ -148,7 +148,7 @@ static InbufPollResult inbuf_poll(int32_t ms)
return kInputNone;
}
-static void stderr_switch()
+static void stderr_switch(void)
{
int mode = cur_tmode;
// We probably set the wrong file descriptor to raw mode. Switch back to
@@ -198,7 +198,7 @@ static int push_event_key(uint8_t *buf, int maxlen)
}
// Check if there's pending input
-bool input_ready()
+bool input_ready(void)
{
return rstream_available(read_stream) > 0 || eof;
}