Mercurial > vim
comparison src/if_py_both.h @ 4496:ebd94eabfd80 v7.3.996
updated for version 7.3.996
Problem: Python: Can't check types of what is returned by bindeval().
Solution: Add vim.List, vim.Dictionary and vim.Function types. (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 May 2013 19:50:34 +0200 |
parents | 6d517f6e5f0b |
children | ef02f32d8e53 |
comparison
equal
deleted
inserted
replaced
4495:fe5605ef4d72 | 4496:ebd94eabfd80 |
---|---|
4243 } object_constants[] = { | 4243 } object_constants[] = { |
4244 {"buffers", (PyObject *)(void *)&TheBufferMap}, | 4244 {"buffers", (PyObject *)(void *)&TheBufferMap}, |
4245 {"windows", (PyObject *)(void *)&TheWindowList}, | 4245 {"windows", (PyObject *)(void *)&TheWindowList}, |
4246 {"tabpages", (PyObject *)(void *)&TheTabPageList}, | 4246 {"tabpages", (PyObject *)(void *)&TheTabPageList}, |
4247 {"current", (PyObject *)(void *)&TheCurrent}, | 4247 {"current", (PyObject *)(void *)&TheCurrent}, |
4248 | |
4249 {"Buffer", (PyObject *)&BufferType}, | |
4250 {"Range", (PyObject *)&RangeType}, | |
4251 {"Window", (PyObject *)&WindowType}, | |
4252 {"TabPage", (PyObject *)&TabPageType}, | |
4253 {"Dictionary", (PyObject *)&DictionaryType}, | |
4254 {"List", (PyObject *)&ListType}, | |
4255 {"Function", (PyObject *)&FunctionType}, | |
4256 {"Options", (PyObject *)&OptionsType}, | |
4248 }; | 4257 }; |
4249 | 4258 |
4250 typedef int (*object_adder)(PyObject *, const char *, PyObject *); | 4259 typedef int (*object_adder)(PyObject *, const char *, PyObject *); |
4251 | 4260 |
4252 #define ADD_OBJECT(m, name, obj) \ | 4261 #define ADD_OBJECT(m, name, obj) \ |