aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2015-02-19 00:34:35 +0000
committerJustin M. Keyes <justinkz@gmail.com>2015-05-24 02:17:32 -0400
commit466bb84ff0d458e0e130ee550bd8ea785e9c62a5 (patch)
tree5ef71ff1b0ea2286fd31c1bf1dfe7e158e83f714 /src
parent8c27b0dd45731b1eb70edeafd9729b4d25b07f87 (diff)
downloadrneovim-466bb84ff0d458e0e130ee550bd8ea785e9c62a5.tar.gz
rneovim-466bb84ff0d458e0e130ee550bd8ea785e9c62a5.tar.bz2
rneovim-466bb84ff0d458e0e130ee550bd8ea785e9c62a5.zip
Rename var eof as input_eof #2728
- In Windows eof is a function, renamed the eof var in input.c to input_eof
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/input.c10
1 files changed, 5 insertions, 5 deletions
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);