Mercurial > vim
diff src/vim9.h @ 20091:a64c16ff98b8 v8.2.0601
patch 8.2.0601: Vim9: :unlet is not compiled
Commit: https://github.com/vim/vim/commit/d72c1bf0a6784afdc8d8ceab4a007cd76d5b81e1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 19 16:28:59 2020 +0200
patch 8.2.0601: Vim9: :unlet is not compiled
Problem: Vim9: :unlet is not compiled.
Solution: Implement :unlet instruction and check for errors.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 Apr 2020 16:30:04 +0200 |
parents | 7fc5d62fe2a5 |
children | 058b41f85bcb |
line wrap: on
line diff
--- a/src/vim9.h +++ b/src/vim9.h @@ -44,6 +44,8 @@ typedef enum { ISN_STORENR, // store number into local variable isn_arg.storenr.stnr_idx + ISN_UNLET, // unlet variable isn_arg.unlet.ul_name + // constants ISN_PUSHNR, // push number isn_arg.number ISN_PUSHBOOL, // push bool value isn_arg.number @@ -205,6 +207,12 @@ typedef struct { int script_idx; // index in sn_var_vals } script_T; +// arguments to ISN_UNLET +typedef struct { + char_u *ul_name; // variable name with g:, w:, etc. + int ul_forceit; // forceit flag +} unlet_T; + /* * Instruction */ @@ -235,6 +243,7 @@ struct isn_S { storeopt_T storeopt; loadstore_T loadstore; script_T script; + unlet_T unlet; } isn_arg; };