Mercurial > vim
comparison src/if_python.c @ 4488:89ea7593fc0c v7.3.992
updated for version 7.3.992
Problem: Python: Too many type casts.
Solution: Change argument types. (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 May 2013 18:30:34 +0200 |
parents | 8fe768bc1234 |
children | 6d517f6e5f0b |
comparison
equal
deleted
inserted
replaced
4487:0e0af28dde2f | 4488:89ea7593fc0c |
---|---|
53 #undef HAVE_FCNTL_H /* Clash with os_win32.h */ | 53 #undef HAVE_FCNTL_H /* Clash with os_win32.h */ |
54 | 54 |
55 #if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02050000 | 55 #if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02050000 |
56 # define PY_SSIZE_T_CLEAN | 56 # define PY_SSIZE_T_CLEAN |
57 #endif | 57 #endif |
58 | |
59 static void init_structs(void); | |
60 | 58 |
61 #define PyBytes_FromString PyString_FromString | 59 #define PyBytes_FromString PyString_FromString |
62 #define PyBytes_Check PyString_Check | 60 #define PyBytes_Check PyString_Check |
63 | 61 |
64 /* No-op conversion functions, use with care! */ | 62 /* No-op conversion functions, use with care! */ |
657 | 655 |
658 /****************************************************** | 656 /****************************************************** |
659 * Internal function prototypes. | 657 * Internal function prototypes. |
660 */ | 658 */ |
661 | 659 |
662 static void PythonIO_Flush(void); | |
663 static int PythonIO_Init(void); | 660 static int PythonIO_Init(void); |
664 static int PythonMod_Init(void); | 661 static int PythonMod_Init(void); |
665 | |
666 /* Utility functions for the vim/python interface | |
667 * ---------------------------------------------- | |
668 */ | |
669 | |
670 static int SetBufferLineList(buf_T *, PyInt, PyInt, PyObject *, PyInt *); | |
671 | 662 |
672 | 663 |
673 /****************************************************** | 664 /****************************************************** |
674 * 1. Python interpreter main program. | 665 * 1. Python interpreter main program. |
675 */ | 666 */ |
1014 } | 1005 } |
1015 | 1006 |
1016 /****************************************************** | 1007 /****************************************************** |
1017 * 3. Implementation of the Vim module for Python | 1008 * 3. Implementation of the Vim module for Python |
1018 */ | 1009 */ |
1019 | |
1020 static PyObject *ConvertToPyObject(typval_T *); | |
1021 static int ConvertFromPyObject(PyObject *, typval_T *); | |
1022 | 1010 |
1023 /* Window type - Implementation functions | 1011 /* Window type - Implementation functions |
1024 * -------------------------------------- | 1012 * -------------------------------------- |
1025 */ | 1013 */ |
1026 | 1014 |