From 07a3db89b8953bd0964895badb3b662f7514bc10 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 25 Dec 2019 18:14:14 +0100 Subject: 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. --- src/structs.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/structs.h') 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; /* -- cgit v1.2.1