comparison src/structs.h @ 32584:2d1eba13035c v9.0.1624

patch 9.0.1624: crash when calling object constructor Commit: https://github.com/vim/vim/commit/5ca05fa59e587f9724306d4788c5dde07fc7225b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 10 16:45:13 2023 +0100 patch 9.0.1624: crash when calling object constructor Problem: Crash when calling object constructor from legacy script. (Israel Chauca Fuentes) Solution: Pass a pointer for "ufunc". (closes #12502)
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Jun 2023 18:00:06 +0200
parents 2614026cd259
children 448aef880252
comparison
equal deleted inserted replaced
32583:3a10160f2242 32584:2d1eba13035c
2182 int (* fe_argv_func)(int, typval_T *, int, ufunc_T *); 2182 int (* fe_argv_func)(int, typval_T *, int, ufunc_T *);
2183 linenr_T fe_firstline; // first line of range 2183 linenr_T fe_firstline; // first line of range
2184 linenr_T fe_lastline; // last line of range 2184 linenr_T fe_lastline; // last line of range
2185 int *fe_doesrange; // if not NULL: return: function handled range 2185 int *fe_doesrange; // if not NULL: return: function handled range
2186 int fe_evaluate; // actually evaluate expressions 2186 int fe_evaluate; // actually evaluate expressions
2187 partial_T *fe_partial; // for extra arguments 2187 ufunc_T *fe_ufunc; // function to be called, when NULL lookup by
2188 // name
2189 partial_T *fe_partial; // for "dict" and extra arguments
2188 dict_T *fe_selfdict; // Dictionary for "self" 2190 dict_T *fe_selfdict; // Dictionary for "self"
2189 object_T *fe_object; // object, e.g. for "this.Func()" 2191 object_T *fe_object; // object, e.g. for "this.Func()"
2190 typval_T *fe_basetv; // base for base->method() 2192 typval_T *fe_basetv; // base for base->method()
2191 type_T *fe_check_type; // type from funcref or NULL 2193 type_T *fe_check_type; // type from funcref or NULL
2192 int fe_found_var; // if the function is not found then give an 2194 int fe_found_var; // if the function is not found then give an