mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.3.1070
Problem: Vim crashes in Python tests. Compiler warning for unused function. Solution: Disable the tests for now. Move the function.
This commit is contained in:
@@ -737,6 +737,21 @@ static PyObject *FunctionGetattr(PyObject *, char *);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_LOCALE_H) || defined(X_LOCALE)
|
||||
static void *
|
||||
py_memsave(void *p, size_t len)
|
||||
{
|
||||
void *r;
|
||||
|
||||
if (!(r = PyMem_Malloc(len)))
|
||||
return NULL;
|
||||
mch_memmove(r, p, len);
|
||||
return r;
|
||||
}
|
||||
|
||||
# define PY_STRSAVE(s) ((char_u *) py_memsave(s, STRLEN(s) + 1))
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Include the code shared with if_python3.c
|
||||
*/
|
||||
|
Reference in New Issue
Block a user