| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.749 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.3.749 |
| Problem: Python interface doesn't build without the multi-byte feature. |
| Solution: Add #ifdef. (Ken Takata) |
| Files: src/if_py_both.h |
| |
| |
| |
| |
| |
| *** 520,526 **** |
| if (!PyArg_ParseTuple(args, "s", &expr)) |
| return NULL; |
| |
| ! return PyLong_FromLong(mb_string2cells((char_u *)expr, (int)STRLEN(expr))); |
| } |
| |
| /* |
| --- 520,532 ---- |
| if (!PyArg_ParseTuple(args, "s", &expr)) |
| return NULL; |
| |
| ! return PyLong_FromLong( |
| ! #ifdef FEAT_MBYTE |
| ! mb_string2cells((char_u *)expr, (int)STRLEN(expr)) |
| ! #else |
| ! STRLEN(expr) |
| ! #endif |
| ! ); |
| } |
| |
| /* |
| |
| |
| |
| *** 727,728 **** |
| --- 727,730 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 749, |
| /**/ |
| |
| -- |
| Contrary to popular belief, Unix is user friendly. |
| It just happens to be selective about who it makes friends with. |
| -- Dave Parnas |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |