diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-30 21:12:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-30 21:12:27 +0100 |
commit | c0ceeeb839b8c6bebd3a2abd1c07d40ec3c6edca (patch) | |
tree | 2f51e084f45dbe3437520d32f83e67fb9704aa6b /src/proto | |
parent | b4ad3b0deac12674a7773311890b48fd39c6807c (diff) | |
download | vim-git-c0ceeeb839b8c6bebd3a2abd1c07d40ec3c6edca.tar.gz |
patch 8.2.4650: "import autoload" only works with using 'runtimepath'v8.2.4650
Problem: "import autoload" only works with using 'runtimepath'.
Solution: Also support a relative and absolute file name.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/scriptfile.pro | 2 | ||||
-rw-r--r-- | src/proto/userfunc.pro | 1 | ||||
-rw-r--r-- | src/proto/vim9instr.pro | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/proto/scriptfile.pro b/src/proto/scriptfile.pro index 510fb5668..a38f25870 100644 --- a/src/proto/scriptfile.pro +++ b/src/proto/scriptfile.pro @@ -6,6 +6,8 @@ int estack_top_is_ufunc(ufunc_T *ufunc, long lnum); estack_T *estack_pop(void); char_u *estack_sfile(estack_arg_T which); void ex_runtime(exarg_T *eap); +int find_script_by_name(char_u *name); +int get_new_scriptitem_for_fname(int *error, char_u *fname); int do_in_path(char_u *path, char_u *name, int flags, void (*callback)(char_u *fname, void *ck), void *cookie); int do_in_runtimepath(char_u *name, int flags, void (*callback)(char_u *fname, void *ck), void *cookie); int source_runtime(char_u *name, int flags); diff --git a/src/proto/userfunc.pro b/src/proto/userfunc.pro index ad5785501..91d5711fc 100644 --- a/src/proto/userfunc.pro +++ b/src/proto/userfunc.pro @@ -8,6 +8,7 @@ char_u *deref_func_name(char_u *name, int *lenp, partial_T **partialp, type_T ** void emsg_funcname(char *ermsg, char_u *name); int get_func_tv(char_u *name, int len, typval_T *rettv, char_u **arg, evalarg_T *evalarg, funcexe_T *funcexe); char_u *fname_trans_sid(char_u *name, char_u *fname_buf, char_u **tofree, int *error); +void func_name_with_sid(char_u *name, int sid, char_u *buffer); ufunc_T *find_func_even_dead(char_u *name, int flags); ufunc_T *find_func(char_u *name, int is_global); int func_is_global(ufunc_T *ufunc); diff --git a/src/proto/vim9instr.pro b/src/proto/vim9instr.pro index 52a7c79f1..535673c0f 100644 --- a/src/proto/vim9instr.pro +++ b/src/proto/vim9instr.pro @@ -54,6 +54,7 @@ int generate_PCALL(cctx_T *cctx, int argcount, char_u *name, type_T *type, int a int generate_STRINGMEMBER(cctx_T *cctx, char_u *name, size_t len); int generate_ECHO(cctx_T *cctx, int with_white, int count); int generate_MULT_EXPR(cctx_T *cctx, isntype_T isn_type, int count); +int generate_SOURCE(cctx_T *cctx, int sid); int generate_PUT(cctx_T *cctx, int regname, linenr_T lnum); int generate_EXEC_copy(cctx_T *cctx, isntype_T isntype, char_u *line); int generate_EXEC(cctx_T *cctx, isntype_T isntype, char_u *str); |