Mercurial > vim
comparison src/structs.h @ 19102:ba9f50bfda83 v8.2.0111
patch 8.2.0111: VAR_SPECIAL is also used for booleans
Commit: https://github.com/vim/vim/commit/9b4a15d5dba354d2e1e02871470bad103f34769a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 11 16:05:23 2020 +0100
patch 8.2.0111: VAR_SPECIAL is also used for booleans
Problem: VAR_SPECIAL is also used for booleans.
Solution: Add VAR_BOOL for better type checking.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 Jan 2020 16:15:04 +0100 |
parents | d9ea4f0bfd34 |
children | 44c6498535c9 |
comparison
equal
deleted
inserted
replaced
19101:7c682fab000b | 19102:ba9f50bfda83 |
---|---|
1311 VAR_FUNC, // "v_string" is function name | 1311 VAR_FUNC, // "v_string" is function name |
1312 VAR_PARTIAL, // "v_partial" is used | 1312 VAR_PARTIAL, // "v_partial" is used |
1313 VAR_LIST, // "v_list" is used | 1313 VAR_LIST, // "v_list" is used |
1314 VAR_DICT, // "v_dict" is used | 1314 VAR_DICT, // "v_dict" is used |
1315 VAR_FLOAT, // "v_float" is used | 1315 VAR_FLOAT, // "v_float" is used |
1316 VAR_SPECIAL, // "v_number" is used | 1316 VAR_BOOL, // "v_number" is VVAL_FALSE or VVAL_TRUE |
1317 VAR_SPECIAL, // "v_number" is VVAL_NONE or VVAL_NULL | |
1317 VAR_JOB, // "v_job" is used | 1318 VAR_JOB, // "v_job" is used |
1318 VAR_CHANNEL, // "v_channel" is used | 1319 VAR_CHANNEL, // "v_channel" is used |
1319 VAR_BLOB, // "v_blob" is used | 1320 VAR_BLOB, // "v_blob" is used |
1320 } vartype_T; | 1321 } vartype_T; |
1321 | 1322 |