aboutsummaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorJohn Schmidt <john.schmidt.h@gmail.com>2014-04-20 23:57:12 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-22 08:06:06 -0300
commitb10341ce5b6e0f5b1c151828416ea72991007b16 (patch)
tree862fedf0556a90400bc917c4ef7ff9a8fe022cc5 /src/fileio.c
parent0072ba93612bb66e1c9411b6c497961c38b2f0e4 (diff)
downloadrneovim-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.c15
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),