ui: Refactor input buffer handling

All input buffer code was moved to os/input.c, and `inbuf` is now a `RBuffer`
instance(which abstracts static buffer manipulation).
This commit is contained in:
Thiago de Arruda
2014-10-18 08:38:15 -03:00
parent 68de5d79a2
commit 42112e04a9
7 changed files with 100 additions and 330 deletions

View File

@@ -339,10 +339,6 @@ enum {
#define fnamencmp(x, y, n) vim_fnamencmp((char_u *)(x), (char_u *)(y), \
(size_t)(n))
#if defined(UNIX) || defined(FEAT_GUI)
# define USE_INPUT_BUF
#endif
#ifndef EINTR
# define read_eintr(fd, buf, count) vim_read((fd), (buf), (count))
# define write_eintr(fd, buf, count) vim_write((fd), (buf), (count))