Mercurial > vim
comparison src/evalvars.c @ 20536:8fa783f2c69c v8.2.0822
patch 8.2.0822: Vim9: code left over from discovery phase
Commit: https://github.com/vim/vim/commit/2eec37926db6d31beb36f162ac00357a30c093c8
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 25 20:33:55 2020 +0200
patch 8.2.0822: Vim9: code left over from discovery phase
Problem: Vim9: code left over from discovery phase.
Solution: Remove the dead code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 May 2020 20:45:04 +0200 |
parents | e6908750a122 |
children | 70d561931721 |
comparison
equal
deleted
inserted
replaced
20535:ec872c8a09ff | 20536:8fa783f2c69c |
---|---|
162 #define vimvarht vimvardict.dv_hashtab | 162 #define vimvarht vimvardict.dv_hashtab |
163 | 163 |
164 // for VIM_VERSION_ defines | 164 // for VIM_VERSION_ defines |
165 #include "version.h" | 165 #include "version.h" |
166 | 166 |
167 static void ex_let_const(exarg_T *eap); | |
168 static char_u *skip_var_one(char_u *arg, int include_type); | 167 static char_u *skip_var_one(char_u *arg, int include_type); |
169 static void list_glob_vars(int *first); | 168 static void list_glob_vars(int *first); |
170 static void list_buf_vars(int *first); | 169 static void list_buf_vars(int *first); |
171 static void list_win_vars(int *first); | 170 static void list_win_vars(int *first); |
172 static void list_tab_vars(int *first); | 171 static void list_tab_vars(int *first); |
680 * ":let var .= expr" assignment command. | 679 * ":let var .= expr" assignment command. |
681 * ":let var ..= expr" assignment command. | 680 * ":let var ..= expr" assignment command. |
682 * ":let [var1, var2] = expr" unpack list. | 681 * ":let [var1, var2] = expr" unpack list. |
683 * ":let var =<< ..." heredoc | 682 * ":let var =<< ..." heredoc |
684 * ":let var: string" Vim9 declaration | 683 * ":let var: string" Vim9 declaration |
685 */ | 684 * |
686 void | |
687 ex_let(exarg_T *eap) | |
688 { | |
689 ex_let_const(eap); | |
690 } | |
691 | |
692 /* | |
693 * ":const" list all variable values | 685 * ":const" list all variable values |
694 * ":const var1 var2" list variable values | 686 * ":const var1 var2" list variable values |
695 * ":const var = expr" assignment command. | 687 * ":const var = expr" assignment command. |
696 * ":const [var1, var2] = expr" unpack list. | 688 * ":const [var1, var2] = expr" unpack list. |
697 */ | 689 */ |
698 void | 690 void |
699 ex_const(exarg_T *eap) | 691 ex_let(exarg_T *eap) |
700 { | |
701 ex_let_const(eap); | |
702 } | |
703 | |
704 static void | |
705 ex_let_const(exarg_T *eap) | |
706 { | 692 { |
707 char_u *arg = eap->arg; | 693 char_u *arg = eap->arg; |
708 char_u *expr = NULL; | 694 char_u *expr = NULL; |
709 typval_T rettv; | 695 typval_T rettv; |
710 int i; | 696 int i; |