aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* 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.
* Remove MEM_PROFILE related codeFelipe Oliveira Carvalho2014-03-26
| | | | | | | | | Code around `#ifdef MEM_PROFILE` was used to profile vim's memory comsumption. It's very likely broken as new code is using malloc() and free() directly. In this day and age, valgrind can solve in a much reliable way what this code was trying to do.
* Use memcmp instead of vim_memcmpFelipe Oliveira Carvalho2014-03-26
|
* Use memmove instead of mch_memmoveFelipe Oliveira Carvalho2014-03-26
|
* Prefer enums over incremental definesPetter Wahlman2014-03-26
|
* Use memset instead of vim_memsetFelipe Oliveira Carvalho2014-03-25
| | | | | | | | | Ran some commands on terminal, reviewed changes, and made some manual changes too. find src | xargs perl -i -p -e "s/vim_memset/memset/g" git grep -l memset | egrep "\.c$" | xargs perl -i -p -e \ 's/(#include "vim\.h")/#include <string.h>\n\n\1/g'
* Do not include farsi.c in main.cFelipe Oliveira Carvalho2014-03-25
| | | | | | | | | - Change CMakeLists.txt to compile farsi.c normally - Add const to global variables in farsi.h and define them in farsi.c (no need to include farsi.h with DO_INIT defined in globals.h) - Include farsi.h where necessary - Include all necessary headers in farsi.c - Move farsi function declarations from main.h to farsi.h
* Move some #defines from farsi.h to farsi.cFelipe Oliveira Carvalho2014-03-25
|
* Fail RunUnittests if we get a non-zero exit code from busted.John Szakmeister2014-03-25
|
* fix mch_delay() unittestStefan Hoffmann2014-03-25
|
* Implement `mch_delay` on top of libuvThiago de Arruda2014-03-24
| | | | | Needed to temporarily move two static variables from os_unix.c to 'globals.h' as those are shared by other functions still in os_unix.
* inline arabic_char()Felipe Oliveira Carvalho2014-03-24
|
* Reformat new function in arabic.c to comply with style guideFelipe Oliveira Carvalho2014-03-24
|
* Move arabic.h #defines from arabic.h to arabic.cFelipe Oliveira Carvalho2014-03-24
| | | | | | | | | - Move arabic_shape() decl from main.h to arabic.h - Move arabic_combine() and arabic_maycombine() from mbyte.c to arabic.c as these functions use the #defines I moved. - Remove the unnecessary include of arabic.h in globals.h - Remove include of arabic.c (sic) in main.c (change CMakeLists.txt to compile arabic.c normally)
* Turn ARABIC_CHAR into a functionFelipe Oliveira Carvalho2014-03-24
|
* Don't require busted.John Szakmeister2014-03-23
| | | | | | | Only provide the unittest target if busted was found. And only build nvim-test if the unittest target exists by excluding nvim-test from all. Note: this means nvim-test won't be built by default, but it will be built when you try to run unittests.
* Update to the newest libuv versionThiago de Arruda2014-03-22
|
* Workaround the broken progress feedback in some versions of CMake.John Szakmeister2014-03-21
| | | | | | | | | | | | Underneath the hood, CMake uses libcurl and libcurl has had a number of issues regarding progress feedback. In one sample run against Travis CI, we ended up with nearly 3,000 lines of progress output for a single download. Unfortunately, CMake doesn't have the download and extract steps separate, so we have some extra work that we have to do. Much of the content was taken from the ExternalProject.cmake and it's template for generating the content of the download and extract CMake files.
* Deal with the missing dependencies for libuv.John Szakmeister2014-03-21
| | | | | | Since libuv.pc is broken at the moment, try to determine libuv's dependencies ourselves. This ports most of the checks from libuv into our CMake build, and fixes the build on other unix platforms.
* Revamp the build system.John Szakmeister2014-03-21
| | | | | | | | | | | | | | | | | | | | | This achieves several goals: * Less reliance on scripts so we have better portability to Windows (though we still have a ways to go for proper Windows support). Luajit, luarocks, moonscript, and busted are all installed via CMake now. * Trying to make use of pkg-config to get the correct libraries. The latest libuv is still broken in this regard, but we'll at least be in a position to use it. * Allow the use of Ninja or make. The former runs faster in many environments, and automatically makes use of parallel builds. This also allows for system installed dependencies--though not through the Makefile just yet--and adds support for FreeBSD. This also make us build libuv and luajit as static libraries only, since we're only concerned about having static libraries for our bundled dependencies.