Problem: if_python: still support for Python 1
Solution: Drop outdated code (Hirohito Higashi)
closes: #18092
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
///////////////////////////////////////////////////////
// 1. Python interpreter main program.
-#if PYTHON_API_VERSION < 1007 // Python 1.4
-typedef PyObject PyThreadState;
-#endif
-
#ifndef PY_CAN_RECURSE
static PyThreadState *saved_python_thread = NULL;
}
}
-// Don't generate a prototype for the next function, it generates an error on
-// newer Python versions.
-#if PYTHON_API_VERSION < 1007 /* Python 1.4 */ && !defined(PROTO)
-
- char *
-Py_GetProgramName(void)
-{
- return "vim";
-}
-#endif // Python 1.4
-
int
set_ref_in_python(int copyID)
{
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1673,
/**/
1672,
/**/