aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* clint: disregard compound literal returnNicolas Hillegeer2014-05-18
| | | | | | | | | | | This allows lines like: return (my_struct_type) { .my_int = 5, .my_str = "" }; Thanks to @watk for finding and fixing it!
* Fixed outdated comment in option.cThiago de Arruda2014-05-17
|
* Removed `lalloc` prototype(again)Thiago de Arruda2014-05-17
| | | | It was re-added by accident when resolving merge conflicts
* Fix `xmemdup` function signatureThiago de Arruda2014-05-17
|
* Replace unnecessary `xcalloc` call by `xmalloc`Thiago de Arruda2014-05-17
|
* Enable -Wconversion for API files and fix errorsThiago de Arruda2014-05-17
|
* Use more descriptive names for API primitive typesThiago de Arruda2014-05-17
| | | | | | | | | Instead of exposing native C types to a public API that can be consumed by other platforms, we are now using the following translation: int64_t -> Integer double -> Float bool -> Boolean
* Refactor API to use one integer type: int64_tThiago de Arruda2014-05-17
| | | | | | | | | This should make the API simpler, and int64_t is enough to represent any integer value we might need. Range checks should be done inside the API functions, that way we can modify the types of the actual fields/variables modified by the API without changes to the API prototypes.
* Use `uintptr_t` as the hashtable type in helpers.cThiago de Arruda2014-05-17
|
* Remove hardcoded type names from msgpack-gen.luaThiago de Arruda2014-05-17
| | | | | Except for the `Error *` type, all parameter types are valid identifiers, so reuse that LPeg rule.
* Replace if (ga->ga_len) with if (!GA_EMPTY(ga))Felipe Oliveira Carvalho2014-05-17
| | | | | | | | | | | | | | | | | | | Used Coccinelle to perform the changes ```diff @@ expression E; statement S; @@ ( - if (E.ga_len) S + if (!GA_EMPTY(&E)) S | - if (E->ga_len) S + if (!GA_EMPTY(E)) S ) ```
* Replace ga->ga_len == 0 checks with GA_EMPTY(ga)Felipe Oliveira Carvalho2014-05-17
| | | | | | | | | | | | | | | | | | | Used Coccinelle to perform the changes @@ expression E; @@ <... ( // E.ga_len == 0 is isomorphic to !E.ga_len - E.ga_len == 0 + GA_EMPTY(&E) | - E->ga_len == 0 + GA_EMPTY(E) ) ...>
* Replace ga->ga_len > 0 checks with !GA_EMPTY(ga)Felipe Oliveira Carvalho2014-05-17
| | | | | | | | | | | | | | | | | | | | | | Used Coccinelle to perform the changes ```diff @@ expression E; @@ <... ( - E.ga_len > 0 + !GA_EMPTY(&E) | - E->ga_len > 0 + !GA_EMPTY(E) ) ...> ``` `spatch --in-place --sp-file ga_empty.cocci <C_FILE>`
* s/GA_EMPTY/GA_EMPTY_INIT_VALUE/Felipe Oliveira Carvalho2014-05-17
| | | | I'm about to implement a `GA_EMPTY` macro that checks if the GA is empty or not.
* Introduce nvim namespace: Fix define guards.Eliseo Martínez2014-05-15
| | | | | | Change define guards from NEOVIM_XXX_H to NVIM_XXX_H: - Change header files. - Change clint correct guard name calculation.
* Introduce nvim namespace: Fix contrib youcompleteme.Eliseo Martínez2014-05-15
| | | | - Fix instructions to install youcompleteme configuration.
* Introduce nvim namespace: Fix localization.Eliseo Martínez2014-05-15
| | | | | - Fix executable path. - Make po file title similar as others.
* Introduce nvim namespace: Fix clint.Eliseo Martínez2014-05-15
| | | | | - Fix path to clint-checked files. - Fix mechanism to calculate define guard names.
* Introduce nvim namespace: Fix functional tests.Eliseo Martínez2014-05-15
| | | | | | | | | | | | | | Fix some paths to new locations: - Makefile: Fix nvim binary path. - test49 : 459: Fix nvim binary path. - test89 : 62: Fix testdir root. Fix corresponding expected result. - test105 : 10: Testing fnamemodify to reduce path to use ~ prefix. Fix faked home directory. Fix corresponding expected result. 26: Testing fnamemodify with r modifier. Fix out-of-project prefix removal. Fix corresponding expected result.
* Introduce nvim namespace: Fix unit tests.Eliseo Martínez2014-05-15
| | | | Point cimports to new locations.
* Introduce nvim namespace: Fix unmasked strings.h issue.Eliseo Martínez2014-05-15
| | | | | | | | | | | | | | | | | | | | | | | | | Problem: Now that nvim/strings.h is correctly namespaced, an issue that had been masked until now arises: When compiling, we get a lot of errors because of everywhere the functions in nvim/strings.h are used, there's no include to import them. But, how could this compile and work previously, then? It turns out that: - In every such case, we are also including vim.h, which in turn includes os_unix_defs.h. - os_unix_defs.h includes <string.h> and also <strings.h> in some systems (e.g. OSX). - Build had been modified previously to (even when importing system headers), prefer equally-named local ones. That was in fact done as a previous attempt to solve the same issue we are trying to solve another way now. So, we were including our "strings.h" as a side-effect of including <strings.h> through "vim.h" --> "os_unix_defs.h". Solution: Correctly include "nvim/strings.h" in every file needing it.
* Introduce nvim namespace: Fix project-local includes.Eliseo Martínez2014-05-15
| | | | Prepend 'nvim/' in all project-local (non-system) includes.
* Introduce nvim namespace: Fix relative includes.Eliseo Martínez2014-05-15
| | | | | | | | | | Problem: Some newly introduced files used includes relative to the current file, both of the form `include "../XXX.h"` and `include "XXX.h"`. Preferred form is relative to include root (src/ in our case). Solution: Change includes to preferred form. Note: This is also done to ease next commit (prepend 'nvim/ to all project-local includes).
* Introduce nvim namespace: Fix build process.Eliseo Martínez2014-05-15
| | | | | | | - Leave src as include dir (for includes to recognize 'nvim/' prefix). - Change subdirectory from src to src/nvim. - Fix msgpack generation. - Fix some other paths to new locations.
* Introduce nvim namespace: Move files.Eliseo Martínez2014-05-15
| | | | | | Move files from src/ to src/nvim/. - src/nvim/ becomes the new root dir for nvim executable sources. - src/libnvim/ is planned to become root dir of the neovim library.
* Tell cmake to use `-isystem` third-party includesThiago de Arruda2014-05-15
| | | | | | | This adds the `SYSTEM` parameter to `include_directories`, which will tell cmake to use `-isystem` instead of `-I` for specifying include directories. One advantage is that compilers won't emit warnings for included files that belong to dependencies.
* Don't allow undefined references under Linux.John Szakmeister2014-05-14
| | | | | Many other systems expect this already, but on Linux the default is to allow them. Let's turn that off.
* Add ${API_SOURCES} to `nvim-test` cmake target.Thiago de Arruda2014-05-14
| | | | Fixes #720
* Use platform check for correct selection of khash type in helpers.cThiago de Arruda2014-05-13
|
* API: Implement vim_get_vvarThiago de Arruda2014-05-13
|
* API: Refactor vim_{get,set}_varThiago de Arruda2014-05-13
| | | | | | | | - Change in dict_set_value: Passing 'nil' as value will delete the variable. - Change in dict_get_value: Removed 'pop' parameter, now values can be popped by passing 'nil' to dict_set_value - Update {buffer,window,tabpage}_get_var to reflect the changes
* API: Implement tabpage_get_window_countThiago de Arruda2014-05-13
|
* API: Implement tabpage_is_validThiago de Arruda2014-05-13
|
* API: Implement tabpage_get_windowThiago de Arruda2014-05-13
|
* API: Implement tabpage_{get,set}_varThiago de Arruda2014-05-13
|
* API: Implement window_is_validThiago de Arruda2014-05-13
|
* API: Implement window_get_positionThiago de Arruda2014-05-13
|
* API: Implement window_{get,set}_optionThiago de Arruda2014-05-13
|
* API: Implement window_{get,set}_varThiago de Arruda2014-05-13
|
* API: Implement window_{get,set}_{height,width}Thiago de Arruda2014-05-13
|
* API: Implement window_{get,set}_cursorThiago de Arruda2014-05-13
|
* API: Implement `window_get_buffer`Thiago de Arruda2014-05-13
|
* Add new files to clint and fix reported errorsThiago de Arruda2014-05-13
|
* API: Implement `buffer_get_mark`Thiago de Arruda2014-05-13
|
* API: Implement `buffer_is_valid`Thiago de Arruda2014-05-13
|
* API: Implement `buffer_insert`Thiago de Arruda2014-05-13
|
* API: Implement buffer_{get,set}_nameThiago de Arruda2014-05-13
|
* API: Implement buffer_{get,set}_optionThiago de Arruda2014-05-13
|
* API: Implement buffer_{get,set}_varThiago de Arruda2014-05-13
|
* API: Implement functions for deleting linesThiago de Arruda2014-05-13
|