mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
eval,*: Move get_tv_string to typval.c
Function was renamed and changed to return `const char *`.
This commit is contained in:
@@ -77,10 +77,10 @@ int eexe_mod_op(typval_T *const tv1, const typval_T *const tv2,
|
||||
if (tv2->v_type == VAR_FLOAT) {
|
||||
break;
|
||||
}
|
||||
char *s = (char *)get_tv_string(tv1);
|
||||
const char *tvs = tv_get_string(tv1);
|
||||
char numbuf[NUMBUFLEN];
|
||||
s = (char *)concat_str((char_u *)s,
|
||||
get_tv_string_buf(tv2, (char_u *)numbuf));
|
||||
char *const s = (char *)concat_str(
|
||||
(const char_u *)tvs, get_tv_string_buf(tv2, (char_u *)numbuf));
|
||||
tv_clear(tv1);
|
||||
tv1->v_type = VAR_STRING;
|
||||
tv1->vval.v_string = (char_u *)s;
|
||||
|
Reference in New Issue
Block a user