comparison src/vim9execute.c @ 34006:ab6a70fad5b5 v9.0.2184

patch 9.0.2184: Vim9: inconsistent :type/:class messages Commit: https://github.com/vim/vim/commit/e75fde6b043371a188660c3423e48b1b7fd7e14b Author: Ernie Rael <errael@raelity.com> Date: Thu Dec 21 17:18:54 2023 +0100 patch 9.0.2184: Vim9: inconsistent :type/:class messages Problem: Vim9: inconsistent :type/:class messages Solution: Update the Messages (Ernie Rael) closes: #13706 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 21 Dec 2023 17:30:05 +0100
parents 45a50fd59a73
children 353ff4d1c039
comparison
equal deleted inserted replaced
34005:f5c639a69421 34006:ab6a70fad5b5
5032 case ISN_COMPARELIST: 5032 case ISN_COMPARELIST:
5033 case ISN_COMPAREDICT: 5033 case ISN_COMPAREDICT:
5034 case ISN_COMPAREFUNC: 5034 case ISN_COMPAREFUNC:
5035 case ISN_COMPARESTRING: 5035 case ISN_COMPARESTRING:
5036 case ISN_COMPAREBLOB: 5036 case ISN_COMPAREBLOB:
5037 case ISN_COMPARECLASS:
5038 case ISN_COMPAREOBJECT: 5037 case ISN_COMPAREOBJECT:
5039 { 5038 {
5040 typval_T *tv1 = STACK_TV_BOT(-2); 5039 typval_T *tv1 = STACK_TV_BOT(-2);
5041 typval_T *tv2 = STACK_TV_BOT(-1); 5040 typval_T *tv2 = STACK_TV_BOT(-1);
5042 exprtype_T exprtype = iptr->isn_arg.op.op_type; 5041 exprtype_T exprtype = iptr->isn_arg.op.op_type;
5066 exprtype, ic, &res); 5065 exprtype, ic, &res);
5067 } 5066 }
5068 else if (iptr->isn_type == ISN_COMPAREBLOB) 5067 else if (iptr->isn_type == ISN_COMPAREBLOB)
5069 { 5068 {
5070 status = typval_compare_blob(tv1, tv2, exprtype, &res); 5069 status = typval_compare_blob(tv1, tv2, exprtype, &res);
5071 }
5072 else if (iptr->isn_type == ISN_COMPARECLASS)
5073 {
5074 status = typval_compare_class(tv1, tv2,
5075 exprtype, FALSE, &res);
5076 } 5070 }
5077 else // ISN_COMPAREOBJECT 5071 else // ISN_COMPAREOBJECT
5078 { 5072 {
5079 status = typval_compare_object(tv1, tv2, 5073 status = typval_compare_object(tv1, tv2,
5080 exprtype, FALSE, &res); 5074 exprtype, FALSE, &res);
7204 case ISN_COMPARESTRING: 7198 case ISN_COMPARESTRING:
7205 case ISN_COMPAREBLOB: 7199 case ISN_COMPAREBLOB:
7206 case ISN_COMPARELIST: 7200 case ISN_COMPARELIST:
7207 case ISN_COMPAREDICT: 7201 case ISN_COMPAREDICT:
7208 case ISN_COMPAREFUNC: 7202 case ISN_COMPAREFUNC:
7209 case ISN_COMPARECLASS:
7210 case ISN_COMPAREOBJECT: 7203 case ISN_COMPAREOBJECT:
7211 case ISN_COMPAREANY: 7204 case ISN_COMPAREANY:
7212 { 7205 {
7213 char *p; 7206 char *p;
7214 char buf[10]; 7207 char buf[10];
7243 type = "COMPARESTRING"; break; 7236 type = "COMPARESTRING"; break;
7244 case ISN_COMPAREBLOB: type = "COMPAREBLOB"; break; 7237 case ISN_COMPAREBLOB: type = "COMPAREBLOB"; break;
7245 case ISN_COMPARELIST: type = "COMPARELIST"; break; 7238 case ISN_COMPARELIST: type = "COMPARELIST"; break;
7246 case ISN_COMPAREDICT: type = "COMPAREDICT"; break; 7239 case ISN_COMPAREDICT: type = "COMPAREDICT"; break;
7247 case ISN_COMPAREFUNC: type = "COMPAREFUNC"; break; 7240 case ISN_COMPAREFUNC: type = "COMPAREFUNC"; break;
7248 case ISN_COMPARECLASS: type = "COMPARECLASS"; break;
7249 case ISN_COMPAREOBJECT: 7241 case ISN_COMPAREOBJECT:
7250 type = "COMPAREOBJECT"; break; 7242 type = "COMPAREOBJECT"; break;
7251 case ISN_COMPAREANY: type = "COMPAREANY"; break; 7243 case ISN_COMPAREANY: type = "COMPAREANY"; break;
7252 default: type = "???"; break; 7244 default: type = "???"; break;
7253 } 7245 }