Mercurial > vim
comparison src/eval.c @ 1969:2e915ea7110f v7.2.266
updated for version 7.2-266
author | vimboss |
---|---|
date | Wed, 30 Sep 2009 13:17:02 +0000 |
parents | d8b9701a3b7b |
children | 27060fe297d0 |
comparison
equal
deleted
inserted
replaced
1968:eb27e3e2df70 | 1969:2e915ea7110f |
---|---|
18099 { | 18099 { |
18100 return vimvars[idx].vv_list; | 18100 return vimvars[idx].vv_list; |
18101 } | 18101 } |
18102 | 18102 |
18103 /* | 18103 /* |
18104 * Set v:char to character "c". | |
18105 */ | |
18106 void | |
18107 set_vim_var_char(c) | |
18108 int c; | |
18109 { | |
18110 #ifdef FEAT_MBYTE | |
18111 char_u buf[MB_MAXBYTES]; | |
18112 #else | |
18113 char_u buf[2]; | |
18114 #endif | |
18115 | |
18116 #ifdef FEAT_MBYTE | |
18117 if (has_mbyte) | |
18118 buf[(*mb_char2bytes)(c, buf)] = NUL; | |
18119 else | |
18120 #endif | |
18121 { | |
18122 buf[0] = c; | |
18123 buf[1] = NUL; | |
18124 } | |
18125 set_vim_var_string(VV_CHAR, buf, -1); | |
18126 } | |
18127 | |
18128 /* | |
18104 * Set v:count to "count" and v:count1 to "count1". | 18129 * Set v:count to "count" and v:count1 to "count1". |
18105 * When "set_prevcount" is TRUE first set v:prevcount from v:count. | 18130 * When "set_prevcount" is TRUE first set v:prevcount from v:count. |
18106 */ | 18131 */ |
18107 void | 18132 void |
18108 set_vcount(count, count1, set_prevcount) | 18133 set_vcount(count, count1, set_prevcount) |