summaryrefslogtreecommitdiff
path: root/src/userfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-06 19:25:19 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-06 19:25:19 +0100
commit5cab73f8cca46d831fb9337b176493da2a55ed5d (patch)
tree7336e8e2dac485ab9457474f45467b44cfe834ff /src/userfunc.c
parent170fcfcf250954d76fca86e3fed088ddfdb49383 (diff)
downloadvim-git-5cab73f8cca46d831fb9337b176493da2a55ed5d.tar.gz
patch 8.2.0223: some instructions not yet testedv8.2.0223
Problem: Some instructions not yet tested. Solution: Disassemble more instructions. Move tests to a new file. Compile call to s:function().
Diffstat (limited to 'src/userfunc.c')
-rw-r--r--src/userfunc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index 3c2673dde..1c25a6268 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -573,8 +573,6 @@ get_func_tv(
return ret;
}
-#define FLEN_FIXED 40
-
/*
* Return TRUE if "p" starts with "<SID>" or "s:".
* Only works if eval_fname_script() returned non-zero for "p"!
@@ -591,7 +589,7 @@ eval_fname_sid(char_u *p)
* Use "fname_buf[FLEN_FIXED + 1]" when it fits, otherwise allocate memory
* (slow).
*/
- static char_u *
+ char_u *
fname_trans_sid(char_u *name, char_u *fname_buf, char_u **tofree, int *error)
{
int llen;