воскресенье, 8 апреля 2012 г., 20:18:03 UTC+4 пользователь 依云 написал: > On Sun, Apr 08, 2012 at 08:49:21AM -0700, ZyX wrote: > > воскресенье, 8 апреля 2012 г., 19:42:47 UTC+4 пользователь ZyX написал: > > > Here is a patch that adds to "bindeval" function to vim module (acts like > > > lua's vim.eval, except for function references), three types: > > > vimdictionary, vimlist and vimfunction (latter does not modify vim > > > functions, but is able to call them without vim.eval() and serializing) > > > and pyeval() VimL function (similar to mzeval). > > > > > > Testing and porting to python3 is still needed. All changes are available > > > in python-extended branch at https://bitbucket.org/ZyX_I/vim. > > > > Seems it is not going to attach a file through groups.google.com interface. > > Pasting it here: http://paste.pocoo.org/show/578013/. You can view the same > > by running "hg diff -r default" while being on my branch. > > I failed to compile. It seems to conflict with lua's code. > > if_lua.c:704:1: error: static declaration of ‘list_insert_tv’ follows > non-static declaration > In file included from proto.h:80:0, > from vim.h:1939, > from if_lua.c:12: > proto/eval.pro:118:5: note: previous declaration of ‘list_insert_tv’ was here > > -- > Best regards, > lilydjwg > > Linux Vim Python 我的博客: > http://lilydjwg.is-programmer.com/ > -- > A: Because it obfuscates the reading. > Q: Why is top posting so bad?
Yes, there was a copy-paste issue in if_lua.c (their creators copy-pasted from eval.c, I chose to purge “static” from declaration there and add a prototype to eval.pro). Fixed in one of recent commits (removed this function from if_lua). -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php