Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
4644:ac9b091fbd16 | 4645:c316a30a8892 |
---|---|
2320 break; | 2320 break; |
2321 } | 2321 } |
2322 return VimTryEnd(); | 2322 return VimTryEnd(); |
2323 } | 2323 } |
2324 | 2324 |
2325 static void * | |
2326 py_memsave(void *p, size_t len) | |
2327 { | |
2328 void *r; | |
2329 if (!(r = PyMem_Malloc(len))) | |
2330 return NULL; | |
2331 mch_memmove(r, p, len); | |
2332 return r; | |
2333 } | |
2334 | |
2335 #define PY_STRSAVE(s) ((char_u *) py_memsave(s, STRLEN(s) + 1)) | |
2336 | |
2337 static int | 2325 static int |
2338 OptionsAssItem(OptionsObject *self, PyObject *keyObject, PyObject *valObject) | 2326 OptionsAssItem(OptionsObject *self, PyObject *keyObject, PyObject *valObject) |
2339 { | 2327 { |
2340 char_u *key; | 2328 char_u *key; |
2341 int flags; | 2329 int flags; |