comparison src/proto/typval.pro @ 31604:9b13b3a63bc0 v9.0.1134

patch 9.0.1134: comparing objects uses identity instead of equality Commit: https://github.com/vim/vim/commit/bcf31ec36b4b056bf06d21036640c6f0235e9c2b Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 2 20:32:24 2023 +0000 patch 9.0.1134: comparing objects uses identity instead of equality Problem: Comparing objects uses identity instead of equality. Solution: Compare the object values.
author Bram Moolenaar <Bram@vim.org>
date Mon, 02 Jan 2023 21:45:02 +0100
parents ba22d5536d3e
children ec0d5bd9083c
comparison
equal deleted inserted replaced
31603:2b8fe38a9989 31604:9b13b3a63bc0
61 void copy_tv(typval_T *from, typval_T *to); 61 void copy_tv(typval_T *from, typval_T *to);
62 int typval_compare(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic); 62 int typval_compare(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic);
63 int typval_compare_list(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic, int *res); 63 int typval_compare_list(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic, int *res);
64 int typval_compare_null(typval_T *tv1, typval_T *tv2); 64 int typval_compare_null(typval_T *tv1, typval_T *tv2);
65 int typval_compare_blob(typval_T *tv1, typval_T *tv2, exprtype_T type, int *res); 65 int typval_compare_blob(typval_T *tv1, typval_T *tv2, exprtype_T type, int *res);
66 int typval_compare_class(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic, int *res);
67 int typval_compare_object(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic, int *res);
66 int typval_compare_dict(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic, int *res); 68 int typval_compare_dict(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic, int *res);
67 int typval_compare_func(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic, int *res); 69 int typval_compare_func(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic, int *res);
68 int typval_compare_string(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic, int *res); 70 int typval_compare_string(typval_T *tv1, typval_T *tv2, exprtype_T type, int ic, int *res);
69 char_u *typval_tostring(typval_T *arg, int quotes); 71 char_u *typval_tostring(typval_T *arg, int quotes);
70 int tv_islocked(typval_T *tv); 72 int tv_islocked(typval_T *tv);