Mercurial > vim
diff src/if_py_both.h @ 4645:c316a30a8892 v7.3.1070
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.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 30 May 2013 15:38:24 +0200 |
parents | 6ec3dada4ad3 |
children | b943fd24c351 |
line wrap: on
line diff
--- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -2322,18 +2322,6 @@ set_option_value_for(key, numval, string 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) {