aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* Use portable format specifiers: Case %ld - localized - smsg.Eliseo Martínez2014-04-23
| | | | | | Fix uses of localized "%ld" within smsg(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - plain - smsg.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within smsg(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - plain - fprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within fprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - localized - sprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of localized "%ld" within sprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - plain - sprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within sprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Remove branching with LONG_LONG_OFF_T.Eliseo Martínez2014-04-23
| | | | | After previous commits, branching code by using macro LONG_LONG_OFF_T becomes unneccesary. Remove it.
* Use portable format specifiers: Case %lld - localized - sprintf.Eliseo Martínez2014-04-23
| | | | | | | Fix uses of localized "%lld" within sprintf(): - Replace _("%lld") with _("%" PRId64). - Cast corresponding argument to (int64_t). - In *.po files, replace "%lld" with "%<PRId64>".
* Use portable format specifiers: Case %lld - plain - sprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%lld" within sprintf(): - Replace "%lld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Fix clint.sh wrapper script and broken filesThiago de Arruda2014-04-22
| | | | | - Fixed clint.sh, it no longer ignores errors in individual files. - Fixed two files that weren't passing the clint test
* Use libtinfo as a fallback for cursesThiago de Arruda2014-04-22
| | | | This will be done before running the FindCurses cmake module
* Broken build on 32 bit: Fix -Wtautological-constant-out-of-range-compare.Eliseo Martínez2014-04-22
| | | | | | | | | | | | | | | | | | | Problem: [ 51%] Building C object src/CMakeFiles/nvim.dir/os/rstream.c.o /Users/eliseo/projects/os/neovim/src/os/rstream.c:237:24: error: comparison of constant 9223372036854775807 with expression of type 'size_t' (aka 'unsigned long') is always true [-Werror,-Wtautological-constant-out-of-range-compare] assert(rstream->fpos <= INT64_MAX); ~~~~~~~~~~~~~ ^ ~~~~~~~~~ /usr/include/assert.h:93:25: note: expanded from macro 'assert' (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0) ^ Solution: Assertion temporarily disabled. TODO: Review types so that assertion can be used.
* Broken build on 32 bit: Fix -Wshorten-64-to-32.Eliseo Martínez2014-04-22
| | | | | | | | | | | | | | | | | | Problem: [ 48%] Building C object src/CMakeFiles/nvim.dir/os/mem.c.o /Users/eliseo/projects/os/neovim/src/os/mem.c:9:32: error: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'long_u' (aka 'unsigned long') [-Werror,-Wshorten-64-to-32] return uv_get_total_memory() >> 10; ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~ Solution: Avoid conversion. Make function return proper uint64_t. Make users of the function accomodate the value if too big for them.
* inline the rest of os_unixx.h into os_unix.cStefan Hoffmann2014-04-22
|
* cleanup os_unixx.hStefan Hoffmann2014-04-22
|
* Remove sizeof(int) < 4 related codeJohn Schmidt2014-04-22
|
* Remove proto as an include directory.oni-link2014-04-21
| | | | The proto directory was removed in 0ef90c13b72b74928bfb3c183c7a5bd7240b51ad.
* fix -Wconversion warnings for rstreamNicolas Hillegeer2014-04-21
| | | | | | | I'm not sure whether to go for signed or unsigned types for the offsets, but without a doubt size_t is a better alternative than uint32_t. Added casts after checking bounds before and after calling external libraries (in this case libuv).
* Add the -Wconversion flag for some files.John Szakmeister2014-04-21
| | | | | This is to provide some infrastructure to help with issue #567 (Enable -Wconversion file by file).
* Remove "h" flag of 'highlight' optionMarco Hinz2014-04-21
| | | | HLF_H is an obsolete flag and got replaced by HLF_E.
* Remove 'textauto' optionMarco Hinz2014-04-21
| | | | For the same reason we removed 'textmode'.
* Replace explicit uv_guest_handle(fd) == UV_TTY by os_isattyPavel Platto2014-04-20
|
* Removed mch_input_isattyPavel Platto2014-04-20
|
* Removed mch_check_winPavel Platto2014-04-20
|
* Added os_isattyPavel Platto2014-04-20
|
* use fixed-width types to define u8char_TNicolas Hillegeer2014-04-19
| | | | The current approach was a bit ad-hoc.
* vim-patch:7.4.236oni-link2014-04-19
| | | | | | | Problem: It's not that easy to check the Vim patch version. Solution: Make has("patch-7.4.123") work. (partly by Marc Weber) https://code.google.com/p/vim/source/detail?r=a44087db72386d080e9da870d751daf498004be8
* Remove `lalloc_clear`John Schmidt2014-04-19
| | | | | Use `xcalloc` instead. Change some local variables to avoid casting.
* Fix bug of `job_stop` not emitting `JobExit`Thiago de Arruda2014-04-18
| | | | | | The `job_stop` function was calling `uv_read_stop` on the std{out,err} streams. This is now responsibility of `RStream` and because of those calls `job_stop` wasn't emitting the `JobExit` event.
* Remove unnecessary cleanup label from `job_start`Thiago de Arruda2014-04-18
| | | | The argument vector is now freed in the `close_cb` function in job.c
* Free job data on close_cbThiago de Arruda2014-04-18
|
* Stop job prepare watcher when there are no jobsThiago de Arruda2014-04-18
| | | | No need to check for job status when no jobs are running
* Refactor job.c module to use WStreamThiago de Arruda2014-04-18
| | | | | After a job has accumulated 1mb of stdin data we assume that it's stuck and kill it.
* Extract writing boilerplate into wstream.c moduleThiago de Arruda2014-04-18
|
* Correctly free libuv handlesThiago de Arruda2014-04-18
| | | | | This ensures memory chunks for libuv handles are only freed after the event loop no longer has references to it.
* Refactor job control to use RStream eventsThiago de Arruda2014-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of a single 'job read' callback, job control consumers need to provide callbacks for "stdout read", "stderr read" and "exit". For vimscript, the JobActivity autocommand is still used to handle every job event, for example: ```vim :let srv1_id = jobstart('netcat-server-1', 'nc', ['-l', '9991']) :let srv2_id = jobstart('netcat-server-2', 'nc', ['-l', '9991']) function JobEvent() " v:job_data[0] = the job id " v:job_data[1] = the event type, one of "stdout", "stderr" or "exit" " v:job_data[2] = data read from stdout or stderr if v:job_data[1] == 'stdout' let str = 'Message from job '.v:job_data[0].': '.v:job_data[2] elseif v:job_data[1] == 'stderr' let str = 'Error message from job '.v:job_data[0].': '.v:job_data[2] else " Exit let str = 'Job '.v:job_data[0].' exited' endif call append(line('$'), str) endfunction au JobActivity netcat-server-* call JobEvent() ``` And to see messages from 'job 1', run in another terminal: ```sh bash -c "while true; do echo 123; sleep 1; done" | nc localhost 9991 ```
* Create EventType for RStream readingThiago de Arruda2014-04-18
| | | | | | | RStream will be the main way Neovim receives asynchronous messages, so it is best to have a specialized EventType for it. A new flag parameter was added to `rstream_new` which tells the RStream instance to defer event handling for later with KE_EVENT instead of handling it directly from libuv callback.
* Deal with backpressure on RStream instancesThiago de Arruda2014-04-18
| | | | | Each RStream instance will now stop its libuv watcher when the buffer is full, and automatically restart when some data is read with `rstream_read`.
* vim-patch:7.4.226oni-link2014-04-18
| | | | | | | | Problem: Cursurline highlighting not redrawn when scrolling. (John Marriott) Solution: Check for required redraw in two places. https://code.google.com/p/vim/source/detail?r=b650f2db8f9604124c0ddfb14af0c04bd4ae0580
* vim-patch:7.4.245oni-link2014-04-17
| | | | | | | Problem: Crash for "vim -u NONE -N -c '&&'". Solution: Check for the pattern to be NULL. (Dominique Pelle) https://code.google.com/p/vim/source/detail?r=80421d934ebde183ce545ab8d9eb3a4c2065c169
* Remove 'textmode' optionMarco Hinz2014-04-16
| | | | | 'textmode' is an option obsoleted for at least 10 years in favor of 'fileformat'.
* Handle special KE_EVENT case where maxlen < 3Thiago de Arruda2014-04-16
| | | | | | | | | | Possible bug reported by @oni-link [here](https://github.com/neovim/neovim/pull/485/files#r11664573). It was handled by doing a circular walk through a key buffer and saving the index between calls with a static variable. Also replaced some `char_u` occurrences by `uint8_t` and removed unused headers in input.c module.
* Remove modelinesMarco Hinz2014-04-16
| | | | | Removed modelines are better than modelines that differ from file to file.
* Refactor input module to use RStream classThiago de Arruda2014-04-16
|
* Refactor job control module to use RStream classThiago de Arruda2014-04-16
|
* Extract reading boilerplate into rstream.c moduleThiago de Arruda2014-04-16
| | | | | | The `RStream` class hides the differences between files and other types of streams with a simpler, general-purpose API for performing non-blocking reads with libuv. Most of the code was adapted from input.c.
* Initialize a variable.Klemen Košir2014-04-16
|
* vim-patch:7.4.253Marco Hinz2014-04-16
| | | | | | | | | Problem: Crash when using cpp syntax file with pattern using external match. (Havard Garnes) Solution: Discard match when end column is before start column. https://code.google.com/p/vim/source/detail?r=4901a36479f200b2e6700ad91c26911d92deb886
* vim-patch:7.4.251Marco Hinz2014-04-16
| | | | | | | | | Problem: Crash when BufAdd autocommand wipes out the buffer. Solution: Check for buffer to still be valid. Postpone freeing the buffer structure. (Hirohito Higashi) https://code.google.com/p/vim/source/detail?r=29eb4c2a33ac701bfcd4d2e2bed7864eba876e0e
* vim-patch:7.4.240Marco Hinz2014-04-16
| | | | | | | Problem: ":tjump" shows "\n" as "\\n". Solution: Skip over "\" that escapes a backslash. (Gary Johnson) https://code.google.com/p/vim/source/detail?r=8d1ba0a23588932d22ad37cbd87ae3bbd4bfeff8
* vim-patch:7.4.239Marco Hinz2014-04-16
| | | | | | | | Problem: ":e +" does not position cursor at end of the file. Solution: Check for "+" being the last character (ZyX) https://code.google.com/p/vim/source/detail?r=98bfec9ea7608f312129475d4ca0ae6d1c6c232e