mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.3.1158
Problem: Crash when running test 86. (Jun Takimoto) Solution: Define PY_SSIZE_T_CLEAN early. (Elimar Riesebieter)
This commit is contained in:
@@ -53,7 +53,14 @@
|
|||||||
# undef _XOPEN_SOURCE /* pyconfig.h defines it as well. */
|
# undef _XOPEN_SOURCE /* pyconfig.h defines it as well. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define PY_SSIZE_T_CLEAN
|
||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
|
||||||
|
#if !defined(PY_VERSION_HEX) || PY_VERSION_HEX < 0x02050000
|
||||||
|
# undef PY_SSIZE_T_CLEAN
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(MACOS) && !defined(MACOS_X_UNIX)
|
#if defined(MACOS) && !defined(MACOS_X_UNIX)
|
||||||
# include "macglue.h"
|
# include "macglue.h"
|
||||||
# include <CodeFragments.h>
|
# include <CodeFragments.h>
|
||||||
@@ -61,10 +68,6 @@
|
|||||||
#undef main /* Defined in python.h - aargh */
|
#undef main /* Defined in python.h - aargh */
|
||||||
#undef HAVE_FCNTL_H /* Clash with os_win32.h */
|
#undef HAVE_FCNTL_H /* Clash with os_win32.h */
|
||||||
|
|
||||||
#if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02050000
|
|
||||||
# define PY_SSIZE_T_CLEAN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define PyBytes_FromString PyString_FromString
|
#define PyBytes_FromString PyString_FromString
|
||||||
#define PyBytes_Check PyString_Check
|
#define PyBytes_Check PyString_Check
|
||||||
|
|
||||||
|
@@ -61,7 +61,10 @@
|
|||||||
# undef _XOPEN_SOURCE /* pyconfig.h defines it as well. */
|
# undef _XOPEN_SOURCE /* pyconfig.h defines it as well. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define PY_SSIZE_T_CLEAN
|
||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
|
||||||
#if defined(MACOS) && !defined(MACOS_X_UNIX)
|
#if defined(MACOS) && !defined(MACOS_X_UNIX)
|
||||||
# include "macglue.h"
|
# include "macglue.h"
|
||||||
# include <CodeFragments.h>
|
# include <CodeFragments.h>
|
||||||
@@ -69,10 +72,6 @@
|
|||||||
#undef main /* Defined in python.h - aargh */
|
#undef main /* Defined in python.h - aargh */
|
||||||
#undef HAVE_FCNTL_H /* Clash with os_win32.h */
|
#undef HAVE_FCNTL_H /* Clash with os_win32.h */
|
||||||
|
|
||||||
#if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02050000
|
|
||||||
# define PY_SSIZE_T_CLEAN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* The "surrogateescape" error handler is new in Python 3.1 */
|
/* The "surrogateescape" error handler is new in Python 3.1 */
|
||||||
#if PY_VERSION_HEX >= 0x030100f0
|
#if PY_VERSION_HEX >= 0x030100f0
|
||||||
# define CODEC_ERROR_HANDLER "surrogateescape"
|
# define CODEC_ERROR_HANDLER "surrogateescape"
|
||||||
|
@@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1158,
|
||||||
/**/
|
/**/
|
||||||
1157,
|
1157,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user