moved more stuff

This commit is contained in:
Jakub Łuczyński 2020-02-07 19:46:11 +01:00
parent dc5debadc2
commit 3b0475927c
3 changed files with 20 additions and 19 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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