comparison src/userfunc.c @ 15138:9df130fd5e0d v8.1.0579

patch 8.1.0579: cannot attach properties to text commit https://github.com/vim/vim/commit/98aefe7c3250bb5d4153b994f878594d1745424e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 13 22:20:09 2018 +0100 patch 8.1.0579: cannot attach properties to text Problem: Cannot attach properties to text. Solution: First part of adding text properties.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Dec 2018 22:30:08 +0100
parents 67e3103d6e18
children 55ccc2d353bd
comparison
equal deleted inserted replaced
15137:44f47a35a3f4 15138:9df130fd5e0d
23 #define FC_REMOVED 0x20 // function redefined while uf_refcount > 0 23 #define FC_REMOVED 0x20 // function redefined while uf_refcount > 0
24 #define FC_SANDBOX 0x40 // function defined in the sandbox 24 #define FC_SANDBOX 0x40 // function defined in the sandbox
25 25
26 /* From user function to hashitem and back. */ 26 /* From user function to hashitem and back. */
27 #define UF2HIKEY(fp) ((fp)->uf_name) 27 #define UF2HIKEY(fp) ((fp)->uf_name)
28 #define HIKEY2UF(p) ((ufunc_T *)(p - offsetof(ufunc_T, uf_name))) 28 #define HIKEY2UF(p) ((ufunc_T *)((p) - offsetof(ufunc_T, uf_name)))
29 #define HI2UF(hi) HIKEY2UF((hi)->hi_key) 29 #define HI2UF(hi) HIKEY2UF((hi)->hi_key)
30 30
31 #define FUNCARG(fp, j) ((char_u **)(fp->uf_args.ga_data))[j] 31 #define FUNCARG(fp, j) ((char_u **)(fp->uf_args.ga_data))[j]
32 #define FUNCLINE(fp, j) ((char_u **)(fp->uf_lines.ga_data))[j] 32 #define FUNCLINE(fp, j) ((char_u **)(fp->uf_lines.ga_data))[j]
33 33