aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* 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.
* Issue #311 - Clean up arabic.c, arabic.h, farsi.c, farsi.h. Tweaks to ↵David Z. Chen2014-03-07
| | | | uncrustify.cfg.
* Remove hangul input supportThiago de Arruda2014-03-07
| | | | | | | | | | | | | Vim [documentation](http://vimdoc.sourceforge.net/htmldoc/hangulin.html), says that hangul support is scheduled to be removed. I think it's safe to say we don't want to support a feature even vim is considering removing. Everything still compiles even after removing the header, so it's not being used. Before doing the initial import to neovim's repository, I had to tweak this module to make it compile for terminal. It was a mistake that is now being corrected.
* Move some types and consts from structs.h to other headersFelipe Oliveira Carvalho2014-03-07
| | | | | | | | | | - `foldinfo_T` to `fold.h` - `context_sha256_T` to `sha256.h` - `tagname_T` to `tag.h` - `pumitem_T` to `popupmnu.h` - `prt_*_T` to hardcopy.h` - `CPT_*` consts to `edit.h` - `vimmenu_T`, `MNU_HIDDEN_CHAR`, and `MENU_*` constants to `menu.h`
* Move garray_T from structs.h to garray.hFelipe Oliveira Carvalho2014-03-07
|
* Fix memory leak and enable valgrind on travisThiago de Arruda2014-03-07
|
* cleanup environment variable handling + unit testsStefan Hoffmann2014-03-06
| | | | | | | | * removed a putenv() implementation which isn't needed anymore * mch_getenv() and mch_setenv() are now functions in src/os/env.c * removes direct calls to getenv() and setenv() outside of src/os/env.c * refactored the logic of get_env_name into mch_getenvname_at_index * added unittests for the functions in os/env.c
* Fix style issues.Thomas Wienecke2014-03-06
| | | | | | | | * Rename mch_full_name to mch_get_absolute_path. * Rename mch_is_full_name to mch_is_absolute_path. * Add a lot of missing parentheses. * Remove yoda-conditions for consistency. * Remove spaces in function declaration.
* Extract keymap.c from misc2.cFelipe Oliveira Carvalho2014-03-06
|
* Extract crypt.c from misc2.cFelipe Oliveira Carvalho2014-03-06
|
* Remove USE_SYSTEM and code only run under USE_SYSTEMSimen Endsjø2014-03-05
|
* Port mch_isdir to libuv.Thomas Wienecke2014-03-05
|
* Remove static declaration of executable_file.Thomas Wienecke2014-03-05
| | | | | Since static functions are only visible in the file in which they are defined, this needs to be done in order to unit test the function.
* Assert that vim_strsize and vim_strnsize gets a non-null parameter.Simen Endsjø2014-03-04
|
* Rename and refactor mch_FullName.Thomas Wienecke2014-03-04
| | | | | | | | | * Rename mch_FullName to mch_full_name to match the style guide. * Add mch_full_dir_name, which saves the absolute path of a given directory relative to cwd into a given buffer. * Add function append_path, which glues together two given paths with a slash. * Adapt moonscript coding style to the tests.
* Move some of misc1.c to indent.c.Gaelan Steele2014-03-03
| | | | My little contribution to #209.
* Remove traces of old custom undo memory manager.Alexander Bolodurin2014-03-03
| | | | | | | There were two memory management implementations, standard malloc-based, and a custom allocator. Removed in rev 2230 in the Mercurial repo.
* Remove dead stack-checking code.Alexander Bolodurin2014-03-03
| | | | | | | Code under HAVE_STACK_LIMIT is not used. The definition was commented out in rev 180 of the original Mercurial repo, and then completely removed in rev 2520, but the code guarded by it was left in.
* Remove __ARGS macro. Close #205Nicolas Pierron2014-03-02
| | | | | | | | | This is a squash of all commits sent to #81. - Remove unused undef of __ARGS. - Fix mch_rename declaration. - Follow changes related to moved & extracted files. - Properly indent function declarations of getchar.h and quickfix.c.
* Clean-up main.c: follow STRNICMP replacement.Nicolas Pierron2014-03-01
|
* Extract file_search.c from misc2.cFelipe Oliveira Carvalho2014-02-28
| | | | | | | | Continue to split misc2.c in many other files (see #209). The only changed I made to the moved code was adding `vim_free(ff_expand_buffer)` to `free_finfile()`. This is was needed because `ff_expand_buffer` was moved from `misc2.c` to `file_search.c`.
* Added a types.h with vim.h unsigned int typedefs.scott-linder2014-02-28
|
* MAKE: ask gnulikes to warn and be pedantic + fixesNicolas Hillegeer2014-02-28
| | | | | | | | | | | | | | | | It seems clang 3.4 thinks the codebase is in fantastic shape and gcc 4.9.0 has only minor niggles, which I fixed: - fix uninitialized member warning: In DEBUG mode the expr member doesn't get properly initialized to NULL. - fix warnings about directive inside of macro's: On some platforms/compilers, sprintf is a macro. Putting macro directives inside of a macro is unportable and gcc 4.9 warns about that. - fix signed vs. unsigned comparison warning: The in-memory table will luckily not even come close to the limits imposed by ssize_t. If it ever reaches that, we've got bigger problems.
* Fix a 'garbage value' warning found by Clang's static analyzerFelipe Oliveira Carvalho2014-02-28
| | | | | - Initialize lists in paragraph_start() - Remove two dead stores
* Use _NSGetEnviron on Mac OS X to gain access to environ.John Szakmeister2014-02-28
| | | | | | | | When building nvim as a shared library for testing, environ is not exposed. In order to gain access to the environment variables, you must get a pointer to them from _NSGetEnviron(). It appears that this may affect the FreeBSD platform too.
* Include "garray.h" in ex_cmds2.cFelipe Oliveira Carvalho2014-02-28
|
* Extract garray.c from misc2.cFelipe Oliveira Carvalho2014-02-28
| | | | Start to split misc2.c in many other files (see #209).
* Use cmake module instead of shared for nvim-testScott Nielsen2014-02-28
| | | | | | | | | On a Mac using shared creates libnvim-test.dylib which cannot be found by the hardcoded .so extension in helpers.moon, causing the unittests to fail. However, using module creates libnvim-test.so, allowing the tests to run. There will still be problems running the tests on windows, because both shared and module create dll file which will not be found by in helpers.moon.
* Add unit test running to travis againThiago de Arruda2014-02-27
|
* Disable unit tests until fixed for travisThiago de Arruda2014-02-27
|
* Add basic infrastructure for unit testingThiago de Arruda2014-02-27
| | | | | | | | | | | | | | | | | | Tests will be written using the [moonscript](http://moonscript.org/) language, a lua 'dialect' that is whitespace-significant and has a syntax similar to coffeescript. The test framework used is [busted](http://olivinelabs.com/busted/), a bdd framework for lua/moonscript. Luajit has a nice ffi module, which lets lua programs link shared libraries and call it's functions without writing any C code. To take advantage of this fact for testing C functions, a new target was added to CMakeLists.txt, which compiles neovim as a shared library that is loaded by the process running the tests. This commit adds necessary code for downloading and installing a lua package manager(luarocks) locally. It wasn't added as a subtree because there are quite a few blobs in its source tree.
* CMakeLists: Improve handling of libintlAlexis Hildebrandt2014-02-27
| | | | by refactoring it into a separate CMake module