From 5adc55cb746893c6ddf7865ff654582902dee2e3 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 2 May 2020 23:12:58 +0200 Subject: patch 8.2.0683: Vim9: parsing type does not always work Problem: Vim9: parsing type does not always work. Solution: Handle func type without return value. Test more closures. Fix type check offset. Fix garbage collection. --- src/proto/vim9execute.pro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/proto/vim9execute.pro') diff --git a/src/proto/vim9execute.pro b/src/proto/vim9execute.pro index 4f7262d74..578fe81e1 100644 --- a/src/proto/vim9execute.pro +++ b/src/proto/vim9execute.pro @@ -1,6 +1,7 @@ /* vim9execute.c */ -int call_def_function(ufunc_T *ufunc, int argc, typval_T *argv, typval_T *rettv); +int call_def_function(ufunc_T *ufunc, int argc_arg, typval_T *argv, typval_T *rettv); void ex_disassemble(exarg_T *eap); int tv2bool(typval_T *tv); int check_not_string(typval_T *tv); +int set_ref_in_dfunc(ufunc_T *ufunc, int copyID); /* vim: set ft=c : */ -- cgit v1.2.1