0
0
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:
Bram Moolenaar
2013-05-30 15:38:24 +02:00
parent fc714b35c6
commit fdde880b02
5 changed files with 21 additions and 12 deletions

View File

@@ -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
*/