diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-22 16:58:09 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-22 21:56:06 -0300 |
commit | 8f710a4103607c3568b31bc9b1002aafc6954489 (patch) | |
tree | bd63bcbdf7225322ac64b20942ca59bb07f9a36c | |
parent | 9f7426ca168e5296c22e589a6694f6a902bdf8d8 (diff) | |
download | rneovim-8f710a4103607c3568b31bc9b1002aafc6954489.tar.gz rneovim-8f710a4103607c3568b31bc9b1002aafc6954489.tar.bz2 rneovim-8f710a4103607c3568b31bc9b1002aafc6954489.zip |
Fix clint.sh wrapper script and broken files
- Fixed clint.sh, it no longer ignores errors in individual files.
- Fixed two files that weren't passing the clint test
-rwxr-xr-x | scripts/clint.sh | 6 | ||||
-rw-r--r-- | src/os/input.h | 2 | ||||
-rw-r--r-- | src/os/rstream.c | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/scripts/clint.sh b/scripts/clint.sh index 1453411e1c..55eb5c9394 100755 --- a/scripts/clint.sh +++ b/scripts/clint.sh @@ -1,5 +1,9 @@ #!/bin/sh for file in $(cat clint-files.txt); do - ./clint.py $file + ./clint.py $file || fail=1 done + +if [ -n "$fail" ]; then + exit 1 +fi diff --git a/src/os/input.h b/src/os/input.h index 0d58a33392..9ffd50fd3f 100644 --- a/src/os/input.h +++ b/src/os/input.h @@ -14,7 +14,7 @@ bool os_char_avail(void); void os_breakcheck(void); /// Test whether a file descriptor refers to a terminal. -/// +/// /// @param fd File descriptor. /// @return `true` if file descriptor refers to a terminal. bool os_isatty(int fd); diff --git a/src/os/rstream.c b/src/os/rstream.c index 519a6466ef..59cab457fa 100644 --- a/src/os/rstream.c +++ b/src/os/rstream.c @@ -235,7 +235,7 @@ static void fread_idle_cb(uv_idle_t *handle) // the offset argument to uv_fs_read is int64_t, could someone really try // to read more than 9 quintillion (9e18) bytes? // DISABLED TO FIX BROKEN BUILD ON 32bit - // TODO Review types to allow assertion + // TODO(elmart): Review types to allow assertion // assert(rstream->fpos <= INT64_MAX); // Synchronous read |