refactor: move StringBuilder to types_defs.h (#33745)

This commit is contained in:
Gregory Anders
2025-05-01 10:06:08 -05:00
committed by GitHub
parent d567f899ef
commit d1fed989f2
8 changed files with 6 additions and 10 deletions

View File

@@ -4,14 +4,11 @@
#include <string.h>
#include "auto/config.h"
#include "klib/kvec.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#include "nvim/eval/typval_defs.h" // IWYU pragma: keep
#include "nvim/os/os_defs.h"
#include "nvim/types_defs.h" // IWYU pragma: keep
typedef kvec_t(char) StringBuilder;
// Return the length of a string literal
#define STRLEN_LITERAL(s) (sizeof(s) - 1)
@@ -65,3 +62,5 @@ static inline char *strappend(char *const dst, const char *const src)
# define STRNICMP(d, s, n) vim_strnicmp((char *)(d), (char *)(s), (size_t)(n))
# endif
#endif
#define kv_printf(v, ...) kv_do_printf(&(v), __VA_ARGS__)