summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-07 14:50:50 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-07 14:50:50 +0200
commita9c010494767e43a51c443cac35ebc80d0831d0b (patch)
tree9997eec6cd7eb6da640de26c0ab5d6637ccbbcce /src/structs.h
parente928366de5deca359fad779a4f740db703296302 (diff)
downloadvim-git-a9c010494767e43a51c443cac35ebc80d0831d0b.tar.gz
patch 8.2.0918: duplicate code for evaluating expression argumentv8.2.0918
Problem: Duplicate code for evaluating expression argument. Solution: Merge the code and make the use more flexible.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/structs.h b/src/structs.h
index eafed960f..cdadb8315 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -4130,20 +4130,6 @@ typedef struct
int sa_wrapped; // search wrapped around
} searchit_arg_T;
-/*
- * Function argument that can be a string, funcref or partial.
- * - declare: evalarg_T name;
- * - init: CLEAR_FIELD(name);
- * - set: evalarg_get(&argvars[3], &name);
- * - use: if (evalarg_valid(&name)) res = evalarg_call(&name);
- * - cleanup: evalarg_clean(&name);
- */
-typedef struct
-{
- char_u eva_buf[NUMBUFLEN]; // buffer for get_tv_string_buf()
- char_u *eva_string;
- callback_T eva_callback;
-} evalarg_T;
#define WRITEBUFSIZE 8192 // size of normal write buffer