diff src/vim.h @ 10912:fd1760f8c215 v8.0.0345

patch 8.0.0345: islocked('d.changedtick') does not work commit https://github.com/vim/vim/commit/3a257737726ba42980bf38ec9a0c80944756af24 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 21 20:47:13 2017 +0100 patch 8.0.0345: islocked('d.changedtick') does not work Problem: islocked('d.changedtick') does not work. Solution: Make it work.
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Feb 2017 21:00:04 +0100
parents c96534dd2b2f
children 3b0924353019
line wrap: on
line diff
--- a/src/vim.h
+++ b/src/vim.h
@@ -2474,10 +2474,12 @@ typedef enum {
 #define TFN_QUIET	2	/* no error messages */
 #define TFN_NO_AUTOLOAD	4	/* do not use script autoloading */
 #define TFN_NO_DEREF	8	/* do not dereference a Funcref */
+#define TFN_READ_ONLY	16	/* will not change the var */
 
 /* 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 GLV_READ_ONLY	TFN_READ_ONLY	/* will not change the var */
 
 #define DO_NOT_FREE_CNT 99999	/* refcount for dict or list that should not
 				   be freed. */