Browse Source

vim-patch:8.2.2319: "exptype_T" can be read as "expected type"

Problem:    "exptype_T" can be read as "expected type".
Solution:   Rename to "exprtype_T", expression type.
657137ca48

Vim9 changes omitted.
pull/14339/head
Jan Edmund Lazo 4 weeks ago
parent
commit
b2971ebeed
No known key found for this signature in database GPG Key ID: 64915E6E9F735B15
  1. 4
      src/nvim/eval.c
  2. 2
      src/nvim/eval.h

4
src/nvim/eval.c

@ -3417,7 +3417,7 @@ static int eval4(char_u **arg, typval_T *rettv, int evaluate)
{
typval_T var2;
char_u *p;
exptype_T type = EXPR_UNKNOWN;
exprtype_T type = EXPR_UNKNOWN;
int len = 2;
bool ic;
@ -10588,7 +10588,7 @@ bool invoke_prompt_interrupt(void)
int typval_compare(
typval_T *typ1, // first operand
typval_T *typ2, // second operand
exptype_T type, // operator
exprtype_T type, // operator
bool ic // ignore case
)
FUNC_ATTR_NONNULL_ALL

2
src/nvim/eval.h

@ -241,7 +241,7 @@ typedef enum {
EXPR_NOMATCH, ///< !~
EXPR_IS, ///< is
EXPR_ISNOT, ///< isnot
} exptype_T;
} exprtype_T;
/// Type for dict_list function
typedef enum {

Loading…
Cancel
Save