mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
*: Move some dictionary functions to typval.h and use char*
Also fixes buffer reusage in setmatches() and complete().
This commit is contained in:
@@ -19,6 +19,15 @@
|
||||
# define MAX(X, Y) ((X) > (Y) ? (X) : (Y))
|
||||
#endif
|
||||
|
||||
/// String with length
|
||||
///
|
||||
/// For use in functions which accept (char *s, size_t len) pair in arguments.
|
||||
///
|
||||
/// @param[in] s Static string.
|
||||
///
|
||||
/// @return `s, sizeof(s) - 1`
|
||||
#define S_LEN(s) (s), (sizeof(s) - 1)
|
||||
|
||||
/*
|
||||
* Position comparisons
|
||||
*/
|
||||
|
Reference in New Issue
Block a user