diff src/vim.h @ 9562:86af4a48c00a v7.4.2058

commit https://github.com/vim/vim/commit/a9b579f3d7463720a316e11e77a7a9fbb9267986 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 17 18:29:19 2016 +0200 patch 7.4.2058 Problem: eval.c is too big. Solution: Move user functions to userfunc.c
author Christian Brabandt <cb@256bit.org>
date Sun, 17 Jul 2016 18:30:05 +0200
parents afaff1d283d3
children 695186e11daa
line wrap: on
line diff
--- a/src/vim.h
+++ b/src/vim.h
@@ -2407,4 +2407,29 @@ int vim_main2(int argc, char **argv);
 #define COPYID_INC 2
 #define COPYID_MASK (~0x1)
 
+/* Values for trans_function_name() argument: */
+#define TFN_INT		1	/* internal function name OK */
+#define TFN_QUIET	2	/* no error messages */
+#define TFN_NO_AUTOLOAD	4	/* do not use script autoloading */
+
+/* Values for get_lval() flags argument: */
+#define GLV_QUIET	TFN_QUIET	/* no error messages */
+#define GLV_NO_AUTOLOAD	TFN_NO_AUTOLOAD	/* do not use script autoloading */
+
+#define DO_NOT_FREE_CNT 99999	/* refcount for dict or list that should not
+				   be freed. */
+
+/* errors for when calling a function */
+#define ERROR_UNKNOWN	0
+#define ERROR_TOOMANY	1
+#define ERROR_TOOFEW	2
+#define ERROR_SCRIPT	3
+#define ERROR_DICT	4
+#define ERROR_NONE	5
+#define ERROR_OTHER	6
+
+/* flags for find_name_end() */
+#define FNE_INCL_BR	1	/* include [] in name */
+#define FNE_CHECK_START	2	/* check name starts with valid character */
+
 #endif /* VIM__H */