Mercurial > vim
comparison src/vim9.h @ 19862:846fbbacce3a v8.2.0487
patch 8.2.0487: Vim9: compiling not sufficiently tested
Commit: https://github.com/vim/vim/commit/bd5da371aafe5a2207065643502f4d1ff6b286c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 31 23:13:10 2020 +0200
patch 8.2.0487: Vim9: compiling not sufficiently tested
Problem: Vim9: compiling not sufficiently tested.
Solution: Add more tests. Fix bug with PCALL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 31 Mar 2020 23:15:04 +0200 |
parents | ad37a198a708 |
children | 8288884fdfe1 |
comparison
equal
deleted
inserted
replaced
19861:e517915a786d | 19862:846fbbacce3a |
---|---|
55 // function call | 55 // function call |
56 ISN_BCALL, // call builtin function isn_arg.bfunc | 56 ISN_BCALL, // call builtin function isn_arg.bfunc |
57 ISN_DCALL, // call def function isn_arg.dfunc | 57 ISN_DCALL, // call def function isn_arg.dfunc |
58 ISN_UCALL, // call user function or funcref/partial isn_arg.ufunc | 58 ISN_UCALL, // call user function or funcref/partial isn_arg.ufunc |
59 ISN_PCALL, // call partial, use isn_arg.pfunc | 59 ISN_PCALL, // call partial, use isn_arg.pfunc |
60 ISN_PCALL_END, // cleanup after ISN_PCALL with cpf_top set | |
60 ISN_RETURN, // return, result is on top of stack | 61 ISN_RETURN, // return, result is on top of stack |
61 ISN_FUNCREF, // push a function ref to dfunc isn_arg.number | 62 ISN_FUNCREF, // push a function ref to dfunc isn_arg.number |
62 | 63 |
63 // expression operations | 64 // expression operations |
64 ISN_JUMP, // jump if condition is matched isn_arg.jump | 65 ISN_JUMP, // jump if condition is matched isn_arg.jump |
254 | 255 |
255 #ifdef DEFINE_VIM9_GLOBALS | 256 #ifdef DEFINE_VIM9_GLOBALS |
256 // Functions defined with :def are stored in this growarray. | 257 // Functions defined with :def are stored in this growarray. |
257 // They are never removed, so that they can be found by index. | 258 // They are never removed, so that they can be found by index. |
258 // Deleted functions have the df_deleted flag set. | 259 // Deleted functions have the df_deleted flag set. |
259 garray_T def_functions = {0, 0, sizeof(dfunc_T), 50, NULL}; | 260 garray_T def_functions = {0, 0, sizeof(dfunc_T), 200, NULL}; |
260 #else | 261 #else |
261 extern garray_T def_functions; | 262 extern garray_T def_functions; |
262 #endif | 263 #endif |
263 | 264 |