0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0044: expression type is used inconsistently

Problem:    Expression type is used inconsistently.
Solution:   Add "ETYPE_IS" and "ETYPE_ISNOT" as separate enum values.  Rename
            "TYPE_" to "ETYPE_" to avoid confusion.
This commit is contained in:
Bram Moolenaar
2019-12-25 18:14:14 +01:00
parent 818fed7a5e
commit 07a3db89b8
5 changed files with 77 additions and 72 deletions

View File

@@ -3628,15 +3628,17 @@ typedef struct {
*/
typedef enum
{
TYPE_UNKNOWN = 0,
TYPE_EQUAL, // ==
TYPE_NEQUAL, // !=
TYPE_GREATER, // >
TYPE_GEQUAL, // >=
TYPE_SMALLER, // <
TYPE_SEQUAL, // <=
TYPE_MATCH, // =~
TYPE_NOMATCH, // !~
ETYPE_UNKNOWN = 0,
ETYPE_EQUAL, // ==
ETYPE_NEQUAL, // !=
ETYPE_GREATER, // >
ETYPE_GEQUAL, // >=
ETYPE_SMALLER, // <
ETYPE_SEQUAL, // <=
ETYPE_MATCH, // =~
ETYPE_NOMATCH, // !~
ETYPE_IS, // is
ETYPE_ISNOT, // isnot
} exptype_T;
/*