comparison src/if_py_both.h @ 8538:c337c813c64d v7.4.1559

commit https://github.com/vim/vim/commit/1735bc988c546cc962c5f94792815b4d7cb79710 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 14 23:05:14 2016 +0100 patch 7.4.1559 Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial.
author Christian Brabandt <cb@256bit.org>
date Mon, 14 Mar 2016 23:15:05 +0100
parents 2f57bbe870ea
children 24b43dd167eb
comparison
equal deleted inserted replaced
8537:cc20abebafa3 8538:c337c813c64d
2942 2942
2943 Py_BEGIN_ALLOW_THREADS 2943 Py_BEGIN_ALLOW_THREADS
2944 Python_Lock_Vim(); 2944 Python_Lock_Vim();
2945 2945
2946 VimTryStart(); 2946 VimTryStart();
2947 error = func_call(name, &args, selfdict, &rettv); 2947 error = func_call(name, &args, NULL, selfdict, &rettv);
2948 2948
2949 Python_Release_Vim(); 2949 Python_Release_Vim();
2950 Py_END_ALLOW_THREADS 2950 Py_END_ALLOW_THREADS
2951 2951
2952 if (VimTryEnd()) 2952 if (VimTryEnd())