]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0524: the recursive parameter in the *_equal functions can be removed v9.1.0524
authorYinzuo Jiang <jiangyinzuo@foxmail.com>
Thu, 4 Jul 2024 15:20:53 +0000 (17:20 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 4 Jul 2024 15:20:53 +0000 (17:20 +0200)
commit7ccd1a2e858dbb2ac7fb09971dfcbfad62baa677
treeb4cb1710ba0a1ccb21306a8d7c0d356134d0f0e7
parente54fd3f7d80502f31259c185798a21d9d1b55315
patch 9.1.0524: the recursive parameter in the *_equal functions can be removed

Problem:  the recursive parameter in the *_equal functions can be removed
Solution: Remove the recursive parameter in dict_equal(), list_equal()
          object_equal and tv_equal(). Use a comparison of the static
          var recursive_cnt == 0 to determine whether or not tv_equal()
          has been called recursively (Yinzuo Jiang).

closes: #15070

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
12 files changed:
src/dict.c
src/evalfunc.c
src/list.c
src/proto/dict.pro
src/proto/list.pro
src/proto/typval.pro
src/proto/vim9class.pro
src/testdir/test_listdict.vim
src/testing.c
src/typval.c
src/version.c
src/vim9class.c