diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-06-24 23:07:47 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-06-24 23:07:47 +0000 |
commit | 1ec484f58e9fef3666e80aa835d99a287c155911 (patch) | |
tree | 0481a24509748a218d3abb861103c9c385b6f75e /src/ex_cmds2.c | |
parent | 0a5fe2140db2e6688a7ef42031a21d8293038715 (diff) |
updated for version 7.0092
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r-- | src/ex_cmds2.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 3c591d0267..b86e4812ea 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -3020,6 +3020,7 @@ theend: } #if defined(FEAT_EVAL) || defined(PROTO) + /* * ":scriptnames" */ @@ -3068,6 +3069,18 @@ get_scriptname(id) return SCRIPT_ITEM(id).sn_name; } +# if defined(EXITFREE) || defined(PROTO) + void +free_scriptnames() +{ + int i; + + for (i = script_items.ga_len; i > 0; --i) + vim_free(SCRIPT_ITEM(i).sn_name); + ga_clear(&script_items); +} +# endif + #endif #if defined(USE_CR) || defined(PROTO) |