mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
moved more stuff
This commit is contained in:
parent
dc5debadc2
commit
3b0475927c
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user