aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.h
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-02-01 15:07:33 +0000
committerSean Dewar <seandewar@users.noreply.github.com>2022-02-12 12:01:29 +0000
commit0511a31ca28e76b12c05622719fc6797d59fb19a (patch)
tree8a1da15eb584daa6a4178594cba317747f1f1e6d /src/nvim/eval.h
parentcdb2c100118ab788772a6a0a1d60f555370fd201 (diff)
downloadrneovim-0511a31ca28e76b12c05622719fc6797d59fb19a.tar.gz
rneovim-0511a31ca28e76b12c05622719fc6797d59fb19a.tar.bz2
rneovim-0511a31ca28e76b12c05622719fc6797d59fb19a.zip
vim-patch:8.2.0918: duplicate code for evaluating expression argument
Problem: Duplicate code for evaluating expression argument. Solution: Merge the code and make the use more flexible. https://github.com/vim/vim/commit/a9c010494767e43a51c443cac35ebc80d0831d0b
Diffstat (limited to 'src/nvim/eval.h')
-rw-r--r--src/nvim/eval.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/nvim/eval.h b/src/nvim/eval.h
index f74f23d084..a9ec5d47a6 100644
--- a/src/nvim/eval.h
+++ b/src/nvim/eval.h
@@ -272,22 +272,6 @@ typedef int (*ex_unletlock_callback)(lval_T *, char_u *, exarg_T *, int);
// Used for checking if local variables or arguments used in a lambda.
extern bool *eval_lavars_used;
-/// Function argument that can be a string, funcref or partial.
-/// - declare: evalarg_T name;
-/// - init: name = EVALARG_INIT;
-/// - set: evalarg_get(&argvars[3], &name);
-/// - use: if (evalarg_valid(&name)) res = evalarg_call(&name);
-/// - cleanup: evalarg_clean(&name);
-typedef struct {
- const char *eva_string;
- Callback eva_callback;
-} evalarg_T;
-
-#define EVALARG_INIT (evalarg_T) { \
- .eva_string = NULL, \
- .eva_callback = CALLBACK_NONE, \
-}
-
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "eval.h.generated.h"
#endif