aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/eval.c12
-rw-r--r--src/nvim/eval.h7
-rw-r--r--src/nvim/eval/user_funcs.h20
3 files changed, 20 insertions, 19 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 98f2bf77a5..cc336c9211 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -5527,18 +5527,6 @@ static int get_env_tv(char_u **arg, typval_T *rettv, int evaluate)
return OK;
}
-typedef enum {
- ERROR_UNKNOWN = 0,
- ERROR_TOOMANY,
- ERROR_TOOFEW,
- ERROR_SCRIPT,
- ERROR_DICT,
- ERROR_NONE,
- ERROR_OTHER,
- ERROR_BOTH,
- ERROR_DELETED,
-} FnameTransError;
-
/// Get the argument list for a given window
void get_arglist_as_rettv(aentry_T *arglist, int argcount,
typval_T *rettv)
diff --git a/src/nvim/eval.h b/src/nvim/eval.h
index 918823c311..1aaccd88fb 100644
--- a/src/nvim/eval.h
+++ b/src/nvim/eval.h
@@ -15,13 +15,6 @@
// All user-defined functions are found in this hashtable.
extern hashtab_T func_hashtab;
-///< Structure used by trans_function_name()
-typedef struct {
- dict_T *fd_dict; ///< Dictionary used.
- char_u *fd_newkey; ///< New key in "dict" in allocated memory.
- dictitem_T *fd_di; ///< Dictionary item used.
-} funcdict_T;
-
// From user function to hashitem and back.
EXTERN ufunc_T dumuf;
#define UF2HIKEY(fp) ((fp)->uf_name)
diff --git a/src/nvim/eval/user_funcs.h b/src/nvim/eval/user_funcs.h
index 5c82d32c8a..3c714c042d 100644
--- a/src/nvim/eval/user_funcs.h
+++ b/src/nvim/eval/user_funcs.h
@@ -3,6 +3,26 @@
#include "nvim/eval/typeval.h"
+///< Structure used by trans_function_name()
+typedef struct {
+ dict_T *fd_dict; ///< Dictionary used.
+ char_u *fd_newkey; ///< New key in "dict" in allocated memory.
+ dictitem_T *fd_di; ///< Dictionary item used.
+} funcdict_T;
+
+/// errors for when calling a function
+typedef enum {
+ ERROR_UNKNOWN = 0,
+ ERROR_TOOMANY,
+ ERROR_TOOFEW,
+ ERROR_SCRIPT,
+ ERROR_DICT,
+ ERROR_NONE,
+ ERROR_OTHER,
+ ERROR_BOTH,
+ ERROR_DELETED,
+} FnameTransError;
+
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "eval/user_funcs.h.generated.h"
#endif