aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* No OOM error in call_shell() and read_string()Felipe Oliveira Carvalho2014-04-24
|
* No OOM error conditions in some functions of window.cFelipe Oliveira Carvalho2014-04-24
| | | | | | | | | | - alloc_tabpage() - win_alloc_lines() - win_alloc_aucmd_win() - new_frame() - win_alloc() TODO: don't handle OOM after calls to dict_alloc()
* No OOM errors in mb_str2wide, slang_alloc, open_spellbufFelipe Oliveira Carvalho2014-04-24
|
* No OOM error condition in cs_make_vim_style_matches()Felipe Oliveira Carvalho2014-04-24
| | | | | Even though cs_reset() never returns anything different of `CS_SUCCESS` I can't change its return type to `void`. cs_reset() is used in the `cs_cmds` table.
* No OOM error condition in save_patterns()Felipe Oliveira Carvalho2014-04-24
|
* No OOM error condition in prt_build_cid_fontname()Felipe Oliveira Carvalho2014-04-24
| | | | | - Replace alloc() with xmalloc[z]() and remove unnecessary casts in hardcopy.c - Use xstrndup in hardcopy.c
* No OOM error condition in ga_concat_strings(), concat_fnames(), concat_str()Felipe Oliveira Carvalho2014-04-24
| | | | | | - xmallocz() is not static anymore. There are many use cases for this function in the codebase and we should start using it. - Simpler types in ga_concat_strings()
* No OOM error condition in prep_exarg()Felipe Oliveira Carvalho2014-04-24
|
* (verbose_)?try_malloc() to use on buf_write()Felipe Oliveira Carvalho2014-04-24
| | | | | | | | | | | There will be more use cases for try_malloc(): see #556. - Reimplemented xmalloc() using try_malloc(). - verbose_try_malloc() is just like try_malloc() but shows an out-of-memory error message before returning NULL. - Let the compiler generate size>>1 assembly for signed types. We're not using old compilers here. - Add proper function attributes to the new functions in memory.h
* Use xmalloc() and xmemdupz() in file_pat_to_reg_pat()Felipe Oliveira Carvalho2014-04-24
| | | | | | | | Unfortunately there's still a case where NULL can be returned from file_pat_to_reg_pat(). xmemdupz() and xmallocz() aren't static anymore. There are many use cases for these function.
* vim-patch:7.4.237oni-link2014-04-24
| | | | | | | | Problem: When some patches was not included has("patch-7.4.123") may return true falsely. Solution: Check for the specific patch number. https://code.google.com/p/vim/source/detail?r=71b165a378ad580818f6d497ecf0f8ad054a9683
* Use portable format specifiers: Clint advice & other.Eliseo Martínez2014-04-23
| | | | | - Modify Clint advice to reflect preference for fixed sized macros. - Cleanup comment to eliminate referecen to "%ld".
* Use portable format specifiers: Case %l[uoxX] - *.po files.Eliseo Martínez2014-04-23
| | | | | Fix uses of plain "%lu", "%lo", "%lx" and "%lX" within *.po files: - Replace "%l<whatever>" with "%" PRI<whatever>64.
* Use portable format specifiers: Remove dead code.Eliseo Martínez2014-04-23
|
* Use portable format specifiers: Case %lu - localized - EMSGN.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%lu" within EMSGN(): - Replace "%lu" with "%" PRIu64. - No argument cast needed. EMSGN() will take care of that.
* Use portable format specifiers: Case %l[uoxX] - plain - sprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%lu", "%lo", "%lx" and "%lX" within sprintf(): - Replace "%l<whatever>" with "%" PRI<whatever>64. - Cast corresponding argument to (uint64_t).
* Use portable format specifiers: Support 'll' in vim_snprintf.Eliseo Martínez2014-04-23
| | | | Add support for 'll' length specifier in vim_snprintf/vim_vsnprintf.
* Use portable format specifiers: Case %ld - *.po files.Eliseo Martínez2014-04-23
| | | | | Fix uses of plain "%ld" within *.po files: - Replace "%ld" with "%<PRId64>".
* Use portable format specifiers: Case %ld - localized - N_.Eliseo Martínez2014-04-23
| | | | | Fix uses of plain "%ld" within N_(): - Replace "%ld" with "%" PRId64.
* Use portable format specifiers: Case %ld - localized - EMSGN.Eliseo Martínez2014-04-23
| | | | | | Fix uses of localized "%ld" within EMSGN(): - Replace "%ld" with "%" PRId64. - No argument cast needed. EMSGN() will take care of that.
* Use portable format specifiers: Case %ld - plain - EMSGN.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within EMSGN(): - Replace "%ld" with "%" PRId64. - No argument cast needed. EMSGN() will take care of that.
* Use portable format specifiers: Adapt EMSGN/emsgn to use (int64_t).Eliseo Martínez2014-04-23
|
* Use portable format specifiers: Case %ld - localized - vim_snprintf_add.Eliseo Martínez2014-04-23
| | | | | | Fix uses of localized "%ld" within vim_snprintf_add(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - localized - vim_snprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of localized "%ld" within vim_snprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - plain - vim_snprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within vim_snprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - localized - smsg.Eliseo Martínez2014-04-23
| | | | | | Fix uses of localized "%ld" within smsg(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - plain - smsg.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within smsg(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - plain - fprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within fprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - localized - sprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of localized "%ld" within sprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - plain - sprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within sprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Remove branching with LONG_LONG_OFF_T.Eliseo Martínez2014-04-23
| | | | | After previous commits, branching code by using macro LONG_LONG_OFF_T becomes unneccesary. Remove it.
* Use portable format specifiers: Case %lld - localized - sprintf.Eliseo Martínez2014-04-23
| | | | | | | Fix uses of localized "%lld" within sprintf(): - Replace _("%lld") with _("%" PRId64). - Cast corresponding argument to (int64_t). - In *.po files, replace "%lld" with "%<PRId64>".
* Use portable format specifiers: Case %lld - plain - sprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%lld" within sprintf(): - Replace "%lld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Fix clint.sh wrapper script and broken filesThiago de Arruda2014-04-22
| | | | | - Fixed clint.sh, it no longer ignores errors in individual files. - Fixed two files that weren't passing the clint test
* Use libtinfo as a fallback for cursesThiago de Arruda2014-04-22
| | | | This will be done before running the FindCurses cmake module
* Broken build on 32 bit: Fix -Wtautological-constant-out-of-range-compare.Eliseo Martínez2014-04-22
| | | | | | | | | | | | | | | | | | | Problem: [ 51%] Building C object src/CMakeFiles/nvim.dir/os/rstream.c.o /Users/eliseo/projects/os/neovim/src/os/rstream.c:237:24: error: comparison of constant 9223372036854775807 with expression of type 'size_t' (aka 'unsigned long') is always true [-Werror,-Wtautological-constant-out-of-range-compare] assert(rstream->fpos <= INT64_MAX); ~~~~~~~~~~~~~ ^ ~~~~~~~~~ /usr/include/assert.h:93:25: note: expanded from macro 'assert' (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0) ^ Solution: Assertion temporarily disabled. TODO: Review types so that assertion can be used.
* Broken build on 32 bit: Fix -Wshorten-64-to-32.Eliseo Martínez2014-04-22
| | | | | | | | | | | | | | | | | | Problem: [ 48%] Building C object src/CMakeFiles/nvim.dir/os/mem.c.o /Users/eliseo/projects/os/neovim/src/os/mem.c:9:32: error: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'long_u' (aka 'unsigned long') [-Werror,-Wshorten-64-to-32] return uv_get_total_memory() >> 10; ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~ Solution: Avoid conversion. Make function return proper uint64_t. Make users of the function accomodate the value if too big for them.
* inline the rest of os_unixx.h into os_unix.cStefan Hoffmann2014-04-22
|
* cleanup os_unixx.hStefan Hoffmann2014-04-22
|
* Remove sizeof(int) < 4 related codeJohn Schmidt2014-04-22
|
* Remove proto as an include directory.oni-link2014-04-21
| | | | The proto directory was removed in 0ef90c13b72b74928bfb3c183c7a5bd7240b51ad.
* fix -Wconversion warnings for rstreamNicolas Hillegeer2014-04-21
| | | | | | | I'm not sure whether to go for signed or unsigned types for the offsets, but without a doubt size_t is a better alternative than uint32_t. Added casts after checking bounds before and after calling external libraries (in this case libuv).
* Add the -Wconversion flag for some files.John Szakmeister2014-04-21
| | | | | This is to provide some infrastructure to help with issue #567 (Enable -Wconversion file by file).
* Remove "h" flag of 'highlight' optionMarco Hinz2014-04-21
| | | | HLF_H is an obsolete flag and got replaced by HLF_E.
* Remove 'textauto' optionMarco Hinz2014-04-21
| | | | For the same reason we removed 'textmode'.
* Replace explicit uv_guest_handle(fd) == UV_TTY by os_isattyPavel Platto2014-04-20
|
* Removed mch_input_isattyPavel Platto2014-04-20
|
* Removed mch_check_winPavel Platto2014-04-20
|
* Added os_isattyPavel Platto2014-04-20
|
* use fixed-width types to define u8char_TNicolas Hillegeer2014-04-19
| | | | The current approach was a bit ad-hoc.