aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* 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
|
* 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
|
* 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.
* printer_opts was left unitilized after #378Felipe Oliveira Carvalho2014-03-21
|
* No longer try to use standalone termcapMarcel Krüger2014-03-19
|
* adapt to the style guildelinesPetter Wahlman2014-03-19
| | | | | semi-automated harvest of low hanging fruit: change the unorthodox use of whitespace.
* Delete structs.h by spliting it and moving code to other headersFelipe Oliveira Carvalho2014-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Here's the list of squashed commits (for more info, see PR #378). - Define guicolor_T as a typedef in syntax.h - Move a big chunk of code from structs.h to buffer_defs.h - Move aco_save_T from structs.h to fileio.h - Move option_table_T from structs.h to hardcopy.h Aditionally: - Move the printer_opts global to hardcopy.c - Delete structs.h. Include buffer_defs.h where structs.h was included before. - Add header guards to option_defs.h - Put mark types and constants in new mark_defs.h - Move undo structs to undo_defs.h - Move memfile structs to new memfile_defs.h - Move expand_T and cmdmod_T to ex_cmds_defs.h - Move memline_T to memline_defs.h - Move many defs and types to ex_eval.h - Move syntax related types to syntax_defs.h - Move struct memfile to memfile_defs.h - struct buffblock and struct buffheader moved back to buffer_defs.h - Move some datatypes to hashtab.h and eval_defs.h - Move the buffer_defs.h include and TODOs for remaining unrelated types in buffer_defs.h
* Issue #311 - Clean up blowfish.c/h, charset.c/h, diff.c/h, digraph.c/h, ↵David Z. Chen2014-03-16
| | | | garray.c/h, hashtab.c/h, popupmnu.c/h, sha256.c/h, version.c/h. Update uncrustify to move logical operators to the beginning of the line when splitting. Also, clean up arabic.c/h and farsi.c/h
* Revive vim_fname (-> os_file_exists); fix misuse of mch_getperm.Thomas Wienecke2014-03-15
| | | | | | * Move vim_fname from misc1 to os/fs:os_file_exists. * Add unit tests for os_file_exists. * Replace misuse of mch_getperm with os_file_exists.
* Move and refactor mch_[gs]etperm to os/fs module.Thomas Wienecke2014-03-15
|
* Moved more functions from misc1.c to indent.cJohn2014-03-15
|
* Use include paths relative to src/James McCoy2014-03-14
| | | | | | | | | | As described in Google's style guide, the basis for Neovim's > All of a project's header files should be listed as descendants of the > project's source directory without use of UNIX directory shortcuts . > (the current directory) or .. (the parent directory). Add src as an include directory to facilitate this.
* Adapt include guards to the style guideJames McCoy2014-03-14
|
* Extract indent_c.c from misc1.cJohn2014-03-14
|
* Remove useless sizeof(uint32_t) == 4 testFelipe Oliveira Carvalho2014-03-14
|
* Replace UINT32_T by uint32_tFelipe Oliveira Carvalho2014-03-14
|
* Include <stdint.h> in types.hFelipe Oliveira Carvalho2014-03-14
|
* Remove remaining hangul-related codeThiago de Arruda2014-03-14
|
* Fix: Use an assert to make sure, an error message can be copied into buffer ↵oni-link2014-03-13
| | | | | | buf in mch_dirname(). The copied error message is NUL-terminated.
* refactored part of expand_env_esc() into mch_get_user_directory()Stefan Hoffmann2014-03-13
|
* removed get_user_name() and replaced calls with mch_get_user_name()Stefan Hoffmann2014-03-13
|
* moved mch_get_user_name() and mch_get_uname() into os/users.cStefan Hoffmann2014-03-13
|
* refactored logic from init_users() into mch_get_usernames()Stefan Hoffmann2014-03-13
|
* Refactor travis build to use clang's sanitizersThiago de Arruda2014-03-13
| | | | | | | | | | | - Valgrind configuration removed - Fix errors reported by the undefined behavior sanitizer - Travis will now run two build steps: - A normal build of a shared library for unit testing(in parallel with gcc) - A clang build with some sanitizers enabled for integration testing. After these changes travis will run much faster, while providing valgrind-like error detection.
* Remove CURSOR_SHAPE #ifdef testsFelipe Oliveira Carvalho2014-03-10
| | | | See issue #333
* Extract cursor_shape.c from misc2.c and types/consts from structs.hFelipe Oliveira Carvalho2014-03-10
|
* Move exarg_T and cmdarg_T from structs.h to normal.hFelipe Oliveira Carvalho2014-03-09
|
* Extract pos.h from structs.hFelipe Oliveira Carvalho2014-03-09
| | | | | This will make it much simpler to move the other types in structs.h which depend on `pos_T` and `lpos_T`.
* Change neo* configurations to n* configurationsWilberto2014-03-09
|
* Fix bugs, clean code, add tests.Thomas Wienecke2014-03-07
| | | | | | | | * Add const specifiers, update comments, add assert. * Move os_unix.moon tests to os/fs.moon + clean tests. * Add uv_fs_req_cleanup call. * Add tests with absolute paths to mch_isdir. * Add to_cstr to test/unit/helpers.moon and fix respective unit tests.
* Remove unused return values.Thomas Wienecke2014-03-07
|
* Move definition of helper function below their usage.Thomas Wienecke2014-03-07
|
* Simplify mch_can_exe extracting is_executable_in_path.Thomas Wienecke2014-03-07
|
* Declare is_executable as static and remove its unit tests.Thomas Wienecke2014-03-07
| | | | | | Testing the public interface mch_can_exe should suffice. Every former test of is_executable has a counterpart in the tests of mch_can_exe. Thus we can keep private things private.
* Move mch_can_exe, executable_file to os/fs.c.Thomas Wienecke2014-03-07
| | | | * Rename executable_file to is_executable.
* Added MODIFIED_BY and updated version information.scott-linder2014-03-07
|
* Fix memory leak in `eval7`Thiago de Arruda2014-03-07
|
* Fix `free_all_mem` and EXITFREE definitionThiago de Arruda2014-03-07
| | | | | | | | | Because of the '$' in `if(DEFINED $ENV{VALGRIND_CHECK})` EXITFREE wasn't being defined, so the `free_all_mem` wasn't being included or called in the resulting binary. This commit fixes that, and also adds includes needed for `free_all_mem` compilation.