summaryrefslogtreecommitdiffstatshomepage
path: root/src/nvim/api/private/dispatch.c
AgeCommit message (Collapse)AuthorFiles
2025-08-14refactor(build): remove INCLUDE_GENERATED_DECLARATIONS guardsbfredl1
These are not needed after #35129 but making uncrustify still play nice with them was a bit tricky. Unfortunately `uncrustify --update-config-with-doc` breaks strings with backslashes. This issue has been reported upstream, and in the meanwhile auto-update on every single run has been disabled.
2023-11-12build: remove PVSdundargoc1
We already have an extensive suite of static analysis tools we use, which causes a fair bit of redundancy as we get duplicate warnings. PVS is also prone to give false warnings which creates a lot of work to identify and disable.
2022-11-15build: allow IWYU to fix includes for all .c filesdundargoc1
Allow Include What You Use to remove unnecessary includes and only include what is necessary. This helps with reducing compilation times and makes it easier to visualise which dependencies are actually required. Work on https://github.com/neovim/neovim/issues/549, but doesn't close it since this only works fully for .c files and not headers.
2022-06-12refactor(api): move command related API to separate filebfredl1
2022-06-12refactor(api): move option code to own filebfredl1
2022-05-30refactor(api): use hashy hash for looking up api method and event namesbfredl1
This avoids generating khash tables at runtime, and is consistent with how evalfuncs lookup work.
2022-03-12feat(ui): connect to remote ui (only debug messages for now)bfredl1
co-authored-by: hlpr98 <hlpr98@gmail.com>
2022-02-27feat(lua): add api and lua autocmdsTJ DeVries1
2021-10-29refactor(api): break out Vim script functions to its own fileBjörn Linse1
2021-10-25refactor(api): move extmark API to its own fileBjörn Linse1
2021-10-12refactor: format all C files under nvim/ #15977dundargoc1
* 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
2021-10-04refactor(api): move window config related functions to own fileBjörn Linse1
2021-09-29Refactor/uncrustify (#15790)dundargoc1
* refactor: format with uncrustify * fixup(dundar): fix functions comments * fixup(dundar): remove space between variable and ++/-- * fixup(dundar): better workaround for macro attributes This is done to be able to better use uncrustify rules for macros * fixup(justin): make preprocessors follow neovim style guide
2021-09-18refactor: format #15702dundargoc1
2021-08-22refactor(map): remove extra-allocating map_new/map_free functionsBjörn Linse1
Note: the reason for removing them is not that there after this refactor is no use of them, but rather that having them available is an anti-pattern: they manange an _extra_ heap allocation which has nothing to do with the functionality of the map itself (khash manages the real buffers internally). In case there happens to be a reason to allocate the map structure itself later, this should be made explicit using xcalloc/xfree calls.
2020-12-05api: move deprecated functions to separate filesBjörn Linse1
Most these are just calls to non-deprecated variants, and take up unnecessary space and search hits in the other files.
2019-09-11Remove excess <stdint.h>Jan Edmund Lazo1
2018-09-23func_attr.h: FUNC_ATTR_PRINTFMichael Hoffmann1
2018-09-05API: Avoid overrun when formatting error-messageJustin M. Keyes1
msgpack_rpc_to_object (called by handle_request .. msgpack_rpc_to_array) always NUL-terminates API Strings. But handle_request .. msgpack_rpc_get_handler_for operates on a raw msgpack_object, before preparation.
2018-07-15dispatch.c: changed api_set_error_callmicha1
2018-07-14channel.c: refactor spaghetti codemicha1
channel.c: WIP remove redundant method check and added FUNC_ATTR_NONNULL_ALL macro channel.c channel_defs.h helpers.c: added Error field to RequestEvent, added no_op handler func channel.c: use const char* instead of string and cleanup channel.c; channel_defs.h; helpers.c: removed error from event again; send errors directly to the channel without using handlers and events channel.c: fixed memory leak and lint errors api/private/dispatch.c; api/vim.c; msgpack_rpc/channel.c msgpack_rpc/helpers.c added Error* field to msgpack_get_handler_for; further refactored channel.c channel.c:323 changed order of evaluation in if statement channel.c: removed superflous whitespace dispatch.c: review comment
2018-06-07API: validation: mention invalid method name (#8489)Justin M. Keyes1
2017-04-19*: Add comment to all C filesZyX1
2016-10-19api: move verbatim c code out of gendispatch.lua and into c filesBjörn Linse1
Remove max_fname_len check, which caused false successful lookups, and was an optimization for a very rare case.