mirror of
https://github.com/vim/vim
synced 2025-07-15 16:51:57 +00:00
updated for version 7.3.1239
Problem: Can't build with Python and MSVC10. Solution: Move #if outside of macro. (Taro Muraoka)
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -36,6 +36,9 @@ src/Obj*/pathdef.c
|
||||
gvimext.dll
|
||||
gvimext.lib
|
||||
|
||||
# Mac OSX
|
||||
src/xxd/xxd.dSYM
|
||||
|
||||
# All platforms
|
||||
*.rej
|
||||
*.orig
|
||||
|
@ -139,13 +139,15 @@ StringToChars(PyObject *obj, PyObject **todecref)
|
||||
}
|
||||
else
|
||||
{
|
||||
PyErr_FORMAT(PyExc_TypeError,
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
N_("expected str() or unicode() instance, but got %s")
|
||||
PyErr_FORMAT(PyExc_TypeError,
|
||||
N_("expected str() or unicode() instance, but got %s"),
|
||||
Py_TYPE_NAME(obj));
|
||||
#else
|
||||
N_("expected bytes() or str() instance, but got %s")
|
||||
PyErr_FORMAT(PyExc_TypeError,
|
||||
N_("expected bytes() or str() instance, but got %s"),
|
||||
Py_TYPE_NAME(obj));
|
||||
#endif
|
||||
, Py_TYPE_NAME(obj));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -191,15 +193,17 @@ NumberToLong(PyObject *obj, long *result, int flags)
|
||||
}
|
||||
else
|
||||
{
|
||||
PyErr_FORMAT(PyExc_TypeError,
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
PyErr_FORMAT(PyExc_TypeError,
|
||||
N_("expected int(), long() or something supporting "
|
||||
"coercing to long(), but got %s")
|
||||
"coercing to long(), but got %s"),
|
||||
Py_TYPE_NAME(obj));
|
||||
#else
|
||||
PyErr_FORMAT(PyExc_TypeError,
|
||||
N_("expected int() or something supporting coercing to int(), "
|
||||
"but got %s")
|
||||
"but got %s"),
|
||||
Py_TYPE_NAME(obj));
|
||||
#endif
|
||||
, Py_TYPE_NAME(obj));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -728,6 +728,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1239,
|
||||
/**/
|
||||
1238,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user