comparison src/proto/scriptfile.pro @ 18991:847cc7932c42 v8.2.0056

patch 8.2.0056: execution stack is incomplete and inefficient Commit: https://github.com/vim/vim/commit/1a47ae32cdc19b0fd5a82e19fe5fddf45db1a506 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 29 23:04:25 2019 +0100 patch 8.2.0056: execution stack is incomplete and inefficient Problem: Execution stack is incomplete and inefficient. Solution: Introduce a proper execution stack and use it instead of sourcing_name/sourcing_lnum. Create a string only when used.
author Bram Moolenaar <Bram@vim.org>
date Sun, 29 Dec 2019 23:15:04 +0100
parents 8f4cc259ed7a
children 94eda51ba9ba
comparison
equal deleted inserted replaced
18990:1219ae40b086 18991:847cc7932c42
1 /* scriptfile.c */ 1 /* scriptfile.c */
2 void estack_init(void);
3 estack_T *estack_push(etype_T type, char_u *name, long lnum);
4 void estack_push_ufunc(etype_T type, ufunc_T *ufunc, long lnum);
5 void estack_pop(void);
6 char_u *estack_sfile(void);
2 void ex_runtime(exarg_T *eap); 7 void ex_runtime(exarg_T *eap);
3 int do_in_path(char_u *path, char_u *name, int flags, void (*callback)(char_u *fname, void *ck), void *cookie); 8 int do_in_path(char_u *path, char_u *name, int flags, void (*callback)(char_u *fname, void *ck), void *cookie);
4 int do_in_runtimepath(char_u *name, int flags, void (*callback)(char_u *fname, void *ck), void *cookie); 9 int do_in_runtimepath(char_u *name, int flags, void (*callback)(char_u *fname, void *ck), void *cookie);
5 int source_runtime(char_u *name, int flags); 10 int source_runtime(char_u *name, int flags);
6 int source_in_path(char_u *path, char_u *name, int flags); 11 int source_in_path(char_u *path, char_u *name, int flags);