From 466bb84ff0d458e0e130ee550bd8ea785e9c62a5 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Thu, 19 Feb 2015 00:34:35 +0000 Subject: Rename var eof as input_eof #2728 - In Windows eof is a function, renamed the eof var in input.c to input_eof --- src/nvim/os/input.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/nvim') diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 2b17128944..486171b48a 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -33,7 +33,7 @@ typedef enum { static RStream *read_stream = NULL; static RBuffer *read_buffer = NULL, *input_buffer = NULL; -static bool eof = false; +static bool input_eof = false; #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/input.c.generated.h" @@ -278,7 +278,7 @@ static bool input_poll(int ms) prof_inchar_enter(); } - event_poll_until(ms, input_ready() || eof); + event_poll_until(ms, input_ready() || input_eof); if (do_profiling == PROF_YES && ms) { prof_inchar_exit(); @@ -289,7 +289,7 @@ static bool input_poll(int ms) void input_done(void) { - eof = true; + input_eof = true; } // This is a replacement for the old `WaitForChar` function in os_unix.c @@ -299,13 +299,13 @@ static InbufPollResult inbuf_poll(int ms) return kInputAvail; } - return eof ? kInputEof : kInputNone; + return input_eof ? kInputEof : kInputNone; } static void read_cb(RStream *rstream, void *data, bool at_eof) { if (at_eof) { - eof = true; + input_eof = true; } char *buf = rbuffer_read_ptr(read_buffer); -- cgit