| Commit message (Collapse) | Author | Age |
... | |
| |
|
| |
|
|
|
|
|
| |
Redefine macro constants as enums in the ffi and import those in their
respective test modules.
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
This makes the intention more explicit and avoid any accidental
matching elsewhere in the tree.
Conflicts:
.gitignore
|
| |
|
|
|
|
| |
My little contribution to #209.
|
|
|
|
|
|
|
| |
There were two memory management implementations,
standard malloc-based, and a custom allocator.
Removed in rev 2230 in the Mercurial repo.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
This makes all warnings errors. We don't want any warnings, so we should
enforce that.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
I now also do make install
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Include a new SINGLE_MAKE which can be used to invoke make but using
only a single job, and in way that avoids any warnings from make.
Use SINGLE_MAKE to execute the tests, since they're meant to be run
serially.
Also, prefer the use of $(MAKE) to avoid invoking an extra subshell
(saves some time).
|
| |
|
|
|
|
|
|
|
|
| |
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`.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
- Initialize lists in paragraph_start()
- Remove two dead stores
|
| |
|
|
|
|
|
|
| |
This prevents an error from CMake when libintl is not found. It's not a
required library, so we must wrap the inclusion in a conditional. It
was already done for the library.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Start to split misc2.c in many other files (see #209).
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
This is needed so that th unit tests library compiles on 64-bit machines
correctly.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
by refactoring it into a separate CMake module
|
| |
|
|
|
|
|
|
| |
This makes it so that a self-installed libintl is now detected and used.
It also attempts to locate a homebrew version of the library, if that
exists.
|
| |
|
|\
| |
| | |
Use CMAKE_C_FLAGS variable to set compiler flags.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If the compiler is some GNU-alike variant, set the compiler flags to use
the gnu99 dialect of C and enable all warnings.
Non-GNU compilers may have to have their own magic added to set dialect
and enable warnings.
Closes #179.
|
| |\
| | |
| | | |
README: add note on RHEL/CentOS 6
|
| | |
| | |
| | |
| | |
| | | |
MAke the use of anchor tags consistent for the change introduced in
5cd3cbe.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add note on autoconf >2.69 being required for compilation under
RHEL/CentOS.
Closes #178.
|
| | |
| | |
| | |
| | |
| | | |
This will be used for testing and in the future for reimplementing vimscript as
a compile-to-lua language.
|
| | |
| | |
| | |
| | |
| | | |
MAke the use of anchor tags consistent for the change introduced in
5cd3cbe.
|
|/ /
| |
| |
| |
| |
| |
| | |
Add note on autoconf >2.69 being required for compilation under
RHEL/CentOS.
Closes #178.
|
|\ \
| |/
|/| |
Use FindCurses.cmake as fallback to find curses libraries
|