summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-25 18:14:14 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-25 18:14:14 +0100
commit07a3db89b8953bd0964895badb3b662f7514bc10 (patch)
tree4f9120dc423b6f1a4c5f50da8c48410223a1cd85 /src/structs.h
parent818fed7a5ea1f1b11493557989a689ff163051e9 (diff)
downloadvim-git-07a3db89b8953bd0964895badb3b662f7514bc10.tar.gz
patch 8.2.0044: expression type is used inconsistentlyv8.2.0044
Problem: Expression type is used inconsistently. Solution: Add "ETYPE_IS" and "ETYPE_ISNOT" as separate enum values. Rename "TYPE_" to "ETYPE_" to avoid confusion.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/structs.h b/src/structs.h
index a543d3b07..9f1d479ce 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -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;
/*