diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-03 18:28:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-03 18:28:17 +0200 |
commit | 505e43a20eb25674b18d73971fe3b51dad917f9a (patch) | |
tree | 857096933d1f1199faa5736681a8321513668d2d /src/structs.h | |
parent | c6538bcc1cdd1fb83732f22fdc69bd9bb66f968a (diff) | |
download | vim-git-505e43a20eb25674b18d73971fe3b51dad917f9a.tar.gz |
patch 8.1.1801: cannot build without the +eval featurev8.1.1801
Problem: Cannot build without the +eval feature.
Solution: Always define funcexe_T.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/structs.h b/src/structs.h index e3f6a73fe..73cacef20 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1517,22 +1517,6 @@ struct funccall_S // "func" }; -// Struct passed between functions dealing with function call execution. -// -// "argv_func", when not NULL, can be used to fill in arguments only when the -// invoked function uses them. It is called like this: -// new_argcount = argv_func(current_argcount, argv, called_func_argcount) -// -typedef struct { - int (* argv_func)(int, typval_T *, int); - linenr_T firstline; // first line of range - linenr_T lastline; // last line of range - int *doesrange; // if not NULL: return: function handled range - int evaluate; // actually evaluate expressions - partial_T *partial; // for extra arguments - dict_T *selfdict; // Dictionary for "self" -} funcexe_T; - /* * Struct used by trans_function_name() */ @@ -1621,6 +1605,22 @@ typedef struct } scriptitem_T; #endif +// Struct passed between functions dealing with function call execution. +// +// "argv_func", when not NULL, can be used to fill in arguments only when the +// invoked function uses them. It is called like this: +// new_argcount = argv_func(current_argcount, argv, called_func_argcount) +// +typedef struct { + int (* argv_func)(int, typval_T *, int); + linenr_T firstline; // first line of range + linenr_T lastline; // last line of range + int *doesrange; // if not NULL: return: function handled range + int evaluate; // actually evaluate expressions + partial_T *partial; // for extra arguments + dict_T *selfdict; // Dictionary for "self" +} funcexe_T; + struct partial_S { int pt_refcount; // reference count |