diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-09 21:36:37 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-09 21:36:37 +0000 |
commit | dc4451df61a6aa12a0661817b7094fb32f09e11d (patch) | |
tree | 98d2ef08366773a3eadb41ec581b1c5e652e3114 /src/structs.h | |
parent | 5f25c3855071bd7e26255c68bf458b1b5cf92f39 (diff) | |
download | vim-git-dc4451df61a6aa12a0661817b7094fb32f09e11d.tar.gz |
patch 8.2.4050: Vim9: need to prefix every item in an autoload scriptv8.2.4050
Problem: Vim9: need to prefix every item in an autoload script.
Solution: First step in supporting "vim9script autoload" and "import
autoload".
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h index 9d5768175..fd4be4fe9 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1827,6 +1827,7 @@ typedef struct { } imported_T; #define IMP_FLAGS_RELOAD 2 // script reloaded, OK to redefine +#define IMP_FLAGS_AUTOLOAD 4 // script still needs to be loaded /* * Info about an already sourced scripts. @@ -1863,6 +1864,7 @@ typedef struct int sn_state; // SN_STATE_ values char_u *sn_save_cpo; // 'cpo' value when :vim9script found char sn_is_vimrc; // .vimrc file, do not restore 'cpo' + char sn_is_autoload; // "vim9script autoload" # ifdef FEAT_PROFILE int sn_prof_on; // TRUE when script is/was profiled @@ -1886,7 +1888,8 @@ typedef struct } scriptitem_T; #define SN_STATE_NEW 0 // newly loaded script, nothing done -#define SN_STATE_RELOAD 1 // script loaded before, nothing done +#define SN_STATE_NOT_LOADED 1 // script located but not loaded +#define SN_STATE_RELOAD 2 // script loaded before, nothing done #define SN_STATE_HAD_COMMAND 9 // a command was executed // Struct passed through eval() functions. |