Mercurial > vim
comparison src/eval.c @ 27613:42d0279c6e7c v8.2.4333
patch 8.2.4333: cstack not always passed to where it is needed
Commit: https://github.com/vim/vim/commit/b6a138eb334621f60c5891d035f80f398d59dbd3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 8 21:17:22 2022 +0000
patch 8.2.4333: cstack not always passed to where it is needed
Problem: cstack not always passed to where it is needed.
Solution: Pass ctack through functions.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 08 Feb 2022 22:30:03 +0100 |
parents | d91be28bbdbb |
children | 1712b102d642 |
comparison
equal
deleted
inserted
replaced
27612:8f106547bf9d | 27613:42d0279c6e7c |
---|---|
973 | 973 |
974 // check the item is exported | 974 // check the item is exported |
975 cc = *p; | 975 cc = *p; |
976 *p = NUL; | 976 *p = NUL; |
977 if (find_exported(import->imp_sid, lp->ll_name, &ufunc, &type, | 977 if (find_exported(import->imp_sid, lp->ll_name, &ufunc, &type, |
978 NULL, TRUE) == -1) | 978 NULL, NULL, TRUE) == -1) |
979 { | 979 { |
980 *p = cc; | 980 *p = cc; |
981 return NULL; | 981 return NULL; |
982 } | 982 } |
983 *p = cc; | 983 *p = cc; |
6054 ++*arg; | 6054 ++*arg; |
6055 cc = **arg; | 6055 cc = **arg; |
6056 **arg = NUL; | 6056 **arg = NUL; |
6057 | 6057 |
6058 idx = find_exported(rettv->vval.v_number, exp_name, &ufunc, &type, | 6058 idx = find_exported(rettv->vval.v_number, exp_name, &ufunc, &type, |
6059 evalarg->eval_cctx, verbose); | 6059 evalarg->eval_cctx, evalarg->eval_cstack, verbose); |
6060 **arg = cc; | 6060 **arg = cc; |
6061 | 6061 |
6062 if (idx < 0 && ufunc == NULL) | 6062 if (idx < 0 && ufunc == NULL) |
6063 { | 6063 { |
6064 ret = FAIL; | 6064 ret = FAIL; |