diff options
author | John Schmidt <john.schmidt.h@gmail.com> | 2014-04-20 23:57:12 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-22 08:06:06 -0300 |
commit | b10341ce5b6e0f5b1c151828416ea72991007b16 (patch) | |
tree | 862fedf0556a90400bc917c4ef7ff9a8fe022cc5 /src/fileio.c | |
parent | 0072ba93612bb66e1c9411b6c497961c38b2f0e4 (diff) | |
download | rneovim-b10341ce5b6e0f5b1c151828416ea72991007b16.tar.gz rneovim-b10341ce5b6e0f5b1c151828416ea72991007b16.tar.bz2 rneovim-b10341ce5b6e0f5b1c151828416ea72991007b16.zip |
Remove sizeof(int) < 4 related code
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/fileio.c b/src/fileio.c index 6d7ea37f9a..767969f9c8 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -983,24 +983,9 @@ retry: * The amount is limited by the fact that read() only can read * upto max_unsigned characters (and other things). */ -#if SIZEOF_INT <= 2 - if (linerest >= 0x7ff0) { - ++split; - *ptr = NL; /* split line by inserting a NL */ - size = 1; - } else -#endif { if (!skip_read) { -#if SIZEOF_INT > 2 -# if defined(SSIZE_MAX) && (SSIZE_MAX < 0x10000L) - size = SSIZE_MAX; /* use max I/O size, 52K */ -# else size = 0x10000L; /* use buffer >= 64K */ -# endif -#else - size = 0x7ff0L - linerest; /* limit buffer to 32K */ -#endif for (; size >= 10; size = (long)((long_u)size >> 1)) { if ((new_buffer = lalloc((long_u)(size + linerest + 1), |