diff options
Diffstat (limited to 'src/nvim/eval/user_funcs.h')
-rw-r--r-- | src/nvim/eval/user_funcs.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 |