Mercurial > vim
comparison src/proto/userfunc.pro @ 30333:fc0830246f49 v9.0.0502
patch 9.0.0502: a closure in a nested loop in a :def function does not work
Commit: https://github.com/vim/vim/commit/cc34181f9994d64f8c8fa2f5845eaf0cc963067f
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 19 15:54:34 2022 +0100
patch 9.0.0502: a closure in a nested loop in a :def function does not work
Problem: A closure in a nested loop in a :def function does not work.
Solution: Use an array of loopvars, one per loop level.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 19 Sep 2022 17:00:07 +0200 |
parents | 61a688be1899 |
children | 586b5b3aacf9 |
comparison
equal
deleted
inserted
replaced
30332:462d122636b3 | 30333:fc0830246f49 |
---|---|
14 ufunc_T *find_func(char_u *name, int is_global); | 14 ufunc_T *find_func(char_u *name, int is_global); |
15 int func_is_global(ufunc_T *ufunc); | 15 int func_is_global(ufunc_T *ufunc); |
16 int func_requires_g_prefix(ufunc_T *ufunc); | 16 int func_requires_g_prefix(ufunc_T *ufunc); |
17 int func_name_refcount(char_u *name); | 17 int func_name_refcount(char_u *name); |
18 void func_clear_free(ufunc_T *fp, int force); | 18 void func_clear_free(ufunc_T *fp, int force); |
19 int copy_lambda_to_global_func(char_u *lambda, char_u *global, short loop_var_idx, short loop_var_count, ectx_T *ectx); | 19 int copy_lambda_to_global_func(char_u *lambda, char_u *global, loopvarinfo_T *loopvarinfo, ectx_T *ectx); |
20 int funcdepth_increment(void); | 20 int funcdepth_increment(void); |
21 void funcdepth_decrement(void); | 21 void funcdepth_decrement(void); |
22 int funcdepth_get(void); | 22 int funcdepth_get(void); |
23 void funcdepth_restore(int depth); | 23 void funcdepth_restore(int depth); |
24 funccall_T *create_funccal(ufunc_T *fp, typval_T *rettv); | 24 funccall_T *create_funccal(ufunc_T *fp, typval_T *rettv); |