aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lib/kbtree.h
Commit message (Collapse)AuthorAge
* refactor: enable formatting for files under libDundar Göc2021-10-19
|
* refactor: format all C files under nvim/ #15977dundargoc2021-10-12
| | | | | | | | * refactor: format all C files under nvim * refactor: disable formatting for Vim-owned files: * src/nvim/indent_c.c * src/nvim/regexp.c * src/nvim/regexp_nfa.c * src/nvim/testdir/samples/memfile_test.c
* nsmarks: initial committimeyyy2019-11-11
|
* refactor: introduce XFREE_CLEAR()Justin M. Keyes2019-05-25
| | | | | | | | | | | | | | | Unfortunately we cannot indiscriminately replace xfree() with XFREE_CLEAR(), because comparing pointers after freeing them is a common pattern. Example in `tv_list_remove_items()`: xfree(li); if (li == item2) { break; } Instead we can do it selectively/explicitly. ref #1375
* kbtree.h: assert valid range #10022Justin M. Keyes2019-05-18
| | | ref #10012
* kbtree: pointer UB and unitialized value fixesBjörn Linse2019-05-18
| | | | | | | - don't underflow itr->p pointer (C standard only allows one past the end, not one before the beginning) - make sure itr->p->i is always initialized (even when not used) - don't rely on `NULL < &object` (likely UB)
* build/gcc: disable -Warray-bounds entirely #7923Justin M. Keyes2018-02-19
| | | | | | | | | | | | | | | We need to disable -Warray-bounds locally for kbtree.h, but we can't because _Pragma("GCC diagnostic pop") is broken in GCC 5.x+. So this commit disables -Warray-bounds entirely (for GCC only). GCC bug: "_Pragma diagnostic 'ignored' in macro with strict-overflow not suppressing warning fully with -Werror" https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66099 ref https://github.com/neovim/neovim/pull/7083#issuecomment-326323599 closes #7921
* bufhl: fix moveBjörn Linse2017-06-24
|
* kbtree: make warning free and delete deprecated macrosBjörn Linse2017-06-24
|
* kbtree: eliminate unneccesary heap allocationBjörn Linse2017-06-24
|
* kbtree: use proper structsBjörn Linse2017-06-24
|
* kbtree: allow iterators to start at arbitrary positionBjörn Linse2017-06-24
|
* kbtree.htimeyyy2017-06-24