Mercurial > vim
comparison src/structs.h @ 23285:112fa621b127 v8.2.2188
patch 8.2.2188: Vim9: crash when calling global function from :def function
Commit: https://github.com/vim/vim/commit/cd45ed03bfdd7fac53d562ad402df74bd26e7754
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 22 17:35:54 2020 +0100
patch 8.2.2188: Vim9: crash when calling global function from :def function
Problem: Vim9: crash when calling global function from :def function.
Solution: Set the outer context. Define the partial for the context on the
original function. Use a refcount to keep track of which ufunc is
using a dfunc. (closes #7525)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Dec 2020 17:45:03 +0100 |
parents | a84e7abb0c92 |
children | e8eb4fd44902 |
comparison
equal
deleted
inserted
replaced
23284:3d54c7fa353c | 23285:112fa621b127 |
---|---|
1361 typedef struct writeq_S writeq_T; | 1361 typedef struct writeq_S writeq_T; |
1362 typedef struct jsonq_S jsonq_T; | 1362 typedef struct jsonq_S jsonq_T; |
1363 typedef struct cbq_S cbq_T; | 1363 typedef struct cbq_S cbq_T; |
1364 typedef struct channel_S channel_T; | 1364 typedef struct channel_S channel_T; |
1365 typedef struct cctx_S cctx_T; | 1365 typedef struct cctx_S cctx_T; |
1366 typedef struct ectx_S ectx_T; | |
1366 | 1367 |
1367 typedef enum | 1368 typedef enum |
1368 { | 1369 { |
1369 VAR_UNKNOWN = 0, // not set, any type or "void" allowed | 1370 VAR_UNKNOWN = 0, // not set, any type or "void" allowed |
1370 VAR_ANY, // used for "any" type | 1371 VAR_ANY, // used for "any" type |