aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | API: Bugfix: Check that error isn't set in buffer_get_lineThiago de Arruda2014-05-23
| |
* | API: Cleanup: Remove unnecessary NULL checksThiago de Arruda2014-05-23
| |
* | Merge #739 'Remove OOM error handling in khash.h'Justin M. Keyes2014-05-22
|\ \
| * | Remove OOM error handling in khash.hPavel Platto2014-05-20
| |/
* | Merge #708 'Remove NULL/non-NULL tests after vim_str(n)save'Justin M. Keyes2014-05-22
|\ \ | |/ |/| | | - replace alloc with xmalloc
| * Remove OOM checks: suggested changes in reviewFelipe Oliveira Carvalho2014-05-19
| | | | | | | | | | | | | | | | | | | | - Replace a vim_strsave/free pair with xrealloc - Use xmallocz() in some places - Use xrealloc() and forget about the NULL pointer case - Remove invalid comment - Remove unnecessary checks - Replace a complicated xmalloc/STRCPY/free code chunk code with xrealloc() - Replace a vim_strsave/free code chunk with xrealloc()
| * Remove OOM checks: viminfo_filename()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: do_string_sub()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: expand_tag_fname() and tag_full_name()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: u_save_line()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: ff_create_stack_element()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: mark_line()Felipe Oliveira Carvalho2014-05-19
| |
| * truncate_line() cant't FAIL: change its return type to voidFelipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: backslash_halve_save()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: save_typebuf()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: alloc_typebuf()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: realloc_cmdbuff()Felipe Oliveira Carvalho2014-05-19
| | | | | | | | | | put_on_cmdline() doesn't FAIL anymore but its return value was never checked.
| * Remove OOM checks: alloc_cmdbuff()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: ml_new_data()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: ml_new()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: mf_alloc_bhdr()Felipe Oliveira Carvalho2014-05-19
| |
| * Remove OOM checks: reverse_text()Felipe Oliveira Carvalho2014-05-19
| |
| * Replace alloc() with xmalloc() and remove immediate OOM checksFelipe Oliveira Carvalho2014-05-19
| |
| * Remove NULL/non-NULL tests after calls to vim_str(n)save()Felipe Oliveira Carvalho2014-05-19
| |
| * Implement vim_str(n)save using xstrdup and strncpy/xmallocFelipe Oliveira Carvalho2014-05-19
| |
* | Remove cryptographyJohn Schmidt2014-05-20
|/ | | | | | | | | | | | | As discussed in #694, vim encryption uses old, obsolete algorithms that are poorly implemented. Since insecure cryptography is worse than no cryptgraphy, the community voted in favor of removing all crypto. Various alternatives to the old crypto is being discussed in #701. Closes #694.
* Improve map module: Refactor vim_to_object_recThiago de Arruda2014-05-19
| | | | Now the map.c module is used to implement the 'lookup set' for that function
* Improve map module: Refactor into a macro libraryThiago de Arruda2014-05-19
| | | | | | The map_* declarations and definitions are now created by a macro invocation with a key type parameter. Also refactored server module to use the updated version.
* Improve map module: Change scopesThiago de Arruda2014-05-19
| | | | | | | - Move `Map` structure definition to `map_defs.h` - Use `KHASH_DECLARE` on map_defs.h to declare khash function prototypes. - Redefine `map_foreach` into a macro - Refactor server.c module to use the new `map_foreach` macro.
* Improve map module: Fix implementation of map_hasThiago de Arruda2014-05-19
|
* Improve map module: Add to clint and CONV_SRCSThiago de Arruda2014-05-19
|
* Merge klib upstream.Justin M. Keyes2014-05-19
| | | | | | | | Silence -Wstrict-prototypes and static analyser warnings Using "(void)" provides an explicit there-are-no-arguments prototype. Using the exact type in "malloc(...sizeof)" is clearer and silences warnings from clang's static analyzer. (John Marshall)
* Fix comment typo.Justin M. Keyes2014-05-19
|
* api/helpers: implement C string to String helperNicolas Hillegeer2014-05-18
| | | | Use it in buffers.c
* 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
|
* 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 localization.Eliseo Martínez2014-05-15
| | | | | - Fix executable path. - Make po file title similar as others.
* 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 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.