Skip to content
Snippets Groups Projects
Commit fdde880b authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

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.
parent fc714b35
No related branches found
Tags v7.3.1070
No related merge requests found
......@@ -2322,18 +2322,6 @@ set_option_value_for(key, numval, stringval, opt_flags, opt_type, from)
return VimTryEnd();
}
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))
static int
OptionsAssItem(OptionsObject *self, PyObject *keyObject, PyObject *valObject)
{
......
......@@ -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
*/
......
......@@ -8,6 +8,8 @@ See http://svn.python.org/view/python/trunk/Misc/README.valgrind?view=markup
STARTTEST
:so small.vim
:set encoding=latin1
:" HACK: currently crashes, skip the test
:e! test.ok | wq! test.out
:if !has('python') | e! test.ok | wq! test.out | endif
:lang C
:py import vim
......
......@@ -2,6 +2,8 @@ Tests for various python features. vim: set ft=vim :
STARTTEST
:so small.vim
:" HACK: currently crashes, skip the test
:e! test.ok | wq! test.out
:if !has('python3') | e! test.ok | wq! test.out | endif
:lang C
:py3 import vim
......
......@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1070,
/**/
1069,
/**/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment