aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Extract `shell_build_argv` from `mch_call_shell`Thiago de Arruda2014-03-31
|
* Make `extra_shell_arg` a `mch_call_shell` parameterThiago de Arruda2014-03-31
|
* Extract `shell_count_argc` from `mch_call_shell`Thiago de Arruda2014-03-31
|
* Extract `shell_skip_word` from `mch_call_shell`Thiago de Arruda2014-03-31
|
* Split code for counting and parsing argumentsThiago de Arruda2014-03-31
|
* Add doxygen-style comments to functions from os/fs.c.Thomas Wienecke2014-03-31
|
* Add basic Doxyfile.Thomas Wienecke2014-03-31
|
* xrealloc(): similar to xmalloc()Felipe Oliveira Carvalho2014-03-31
| | | | | Replaced all calls to realloc by xrealloc. All `== NULL` tests can be removed and the code within `!= NULL` tests can be unwrapped.
* Document xmalloc() and deprecate lalloc()Felipe Oliveira Carvalho2014-03-31
|
* Avoid a seg fault when exiting after OOM errorFelipe Oliveira Carvalho2014-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm debugging OOM behavior using http://www.nongnu.org/failmalloc/ on Linux. gdb environment: ``` set env LD_PRELOAD=libfailmalloc.so set env FAILMALLOC_SPACE=0xF00000 ``` SEGV was happening like this: ``` Starting program: /home/felipe/code/neovim/build/bin/nvim [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Vim: Error: Out of memory. Program received signal SIGSEGV, Segmentation fault. 0x00000000004d3719 in getout (exitval=1) at /home/felipe/code/neovim/src/main.c:836 836 if (*p_viminfo != NUL) (gdb) ``` After the fix it works as expected: ``` (gdb) set environment LD_PRELOAD=libfailmalloc.so (gdb) set environment FAILMALLOC_SPACE=0xF00000 (gdb) r Starting program: /home/felipe/code/neovim/build/bin/nvim [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Vim: Error: Out of memory. Vim: Finished. [Inferior 1 (process 21505) exited with code 01] (gdb) ```
* xmalloc() that succeeds or gracefully abortsFelipe Oliveira Carvalho2014-03-31
|
* update readme: "progress" section; formattingJustin M. Keyes2014-03-31
|
* Force the `cmake` target to re-run the CMake configuration.John Szakmeister2014-03-31
| | | | | This makes it more handy when files are added or removed from the source tree. A simple `make cmake` will re-configure and pick up the change.
* Use the clang 3.4 release tarball instead of apt for clang 3.4.John Szakmeister2014-03-30
| | | | | | | | | | It appears the llvm.org/apt/ repository isn't always reliable. So let's use the release tarball instead. Also, make using 3.4 conditional, so we can use the clang 3.3 if things still manage to go awry in the future. Note: using 3.3 means that we won't get leak detection. I left the logic for using llvm.org/apt/, just in case we want try using it again sometime.
* Re-integrate FEAT_SIGNS code, close #383Justin M. Keyes2014-03-29
| | | | | - omit FEAT_NETBEANS_INTG and FEAT_SIGN_ICONS - omit FEAT_GUI blocks
* use function attributes on allocation functionsNicolas Hillegeer2014-03-29
| | | | | This should allow gcc/clang/icc to generate better code and clarifies function intent.
* add func_attr.h to be able to use func attribsNicolas Hillegeer2014-03-29
| | | | | Currently enables these for every gnu-like compilers, i.e.: gcc, clang and icc.
* Move remove_duplicates to garray.cJohn Schmidt2014-03-29
|
* Extract path.c from misc1.cJohn Schmidt2014-03-29
|
* Drop the deb-src for clang.John Szakmeister2014-03-29
| | | | | The llvm.org/apt repo currently has an issue with the source packages, and we don't need it on Travis anyways.
* Append to CMAKE_PREFIX_PATH instead setting it outright.John Szakmeister2014-03-28
| | | | | Also, don't set it in the FindXxx cmake scripts--it's unnecessary, and it resets the value.
* Address clint warnings and other style issues.Thomas Wienecke2014-03-27
| | | | | | | * Add const. * Fix conditions (move && from end to start of line). * Use int32_t instead of long. * Use //-style comments.
* Rename mch_* functions to os_* in os module.Thomas Wienecke2014-03-27
|
* Fix prepare watcher teardown in the event loopThiago de Arruda2014-03-27
|
* Re-integrate FEAT_FILTERPIPE codeThiago de Arruda2014-03-27
| | | | | | | | | | | | | This feature was accidentally removed when doing the initial import from vim. It makes vim use pipes instead of temporary files for filtering buffers through shell commands. I found that this was missing when looking for references of SHELL_READ/SHELL_WRITE outside mch_call_shell`. When `mch_call_shell` is reimplemented on top of libuv process management facilities, pipes will always be used for communication with child processes so it makes sense to enable the feature permanently.
* Make `EventType` enum private to input.cThiago de Arruda2014-03-27
| | | | | This enum doesn't need to be public since `event_poll` is only interested in user input(but other events may be handled by libuv callbacks).
* Don't use alias in travis.sh.John Szakmeister2014-03-27
| | | | | We don't want to clobber anyone's make alias when running travis.sh directly.
* More cleanupJulian Orth2014-03-27
|
* remove leftover c++ headersJulian Orth2014-03-27
|
* remove some leftover function callsJulian Orth2014-03-27
|
* remove cpp headersJulian Orth2014-03-27
|
* remove cpp file extensionsJulian Orth2014-03-27
|
* remove CleanseRawStringsJulian Orth2014-03-27
|
* remove C++ only _NestingState partsJulian Orth2014-03-27
|
* clean up CheckForNonStandardConstructJulian Orth2014-03-27
| | | | remove C++ stuff and add C types
* remove C++ stuff from CheckSpacingForFunctionCallJulian Orth2014-03-27
|
* remove C++ stuff from CheckSpacingJulian Orth2014-03-27
|
* remove CheckSectionSpacingJulian Orth2014-03-27
| | | | irrelevant
* remove unused functionJulian Orth2014-03-27
|
* remove some unused variablesJulian Orth2014-03-27
|
* remove C++ only stuff from CheckLanguageJulian Orth2014-03-27
| | | | Do we want VLAs?
* remove "stream check" from CheckIncludeLineJulian Orth2014-03-27
| | | | irrelevant
* remove CheckForNonConstReferenceJulian Orth2014-03-27
| | | | irrelevant
* remove CheckCStyleCastJulian Orth2014-03-27
|
* remove CheckForIncludeWhatYouUseJulian Orth2014-03-27
| | | | Only checks C++ related headers
* remove CheckMakePairUsesDeductionJulian Orth2014-03-27
| | | | Irrelevant
* Cleanup of indent.c to make it comply with style guide.John2014-03-27
| | | | | | | | | | | | - Uncrustify indent.c - Fix comments - Fix whitespace - Format get_lisp_indent (needs to be refactored completely) - Fix endline comments - Change to postincrement - Fix clint.py errors - Move static function last - Fix blank endlines
* Reimplement input functions on top of libuvThiago de Arruda2014-03-26
| | | | | | | | | | | | | | | | The functions `mch_inchar`, `mch_breakcheck`, `mch_char_avail` were reimplemented on top of libuv. Here's how it works: - When Neovim needs to wait for characters, it will transfer control to libuv event loop. - When the libuv event loop gets user input, it will transfer control back to Neovim - Neovim uses the `input_read` function to get the actual data read by libuv. With this scheme its possible to keep Neovim single-threaded while enjoying the benefits provided by libuv. This commit leaves SIGWINCH broken for now
* Use realloc instead of vim_reallocFelipe Oliveira Carvalho2014-03-26
|
* HAVE_AVAIL_MEM is always undefined. Remove tests and dead codeFelipe Oliveira Carvalho2014-03-26
| | | | | Defining HAVE_AVAIL_MEM doesn't even build. The code tries to call `mch_avail_mem` which is not defined.