blob: c069866af6b94f051c173f6fce8a8173654dae9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1020
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------
Patch 8.1.1020
Problem: Compiler warning for Python3 interface.
Solution: Add type cast. (Ozaki Kiichi, closes #4128, closes #4103)
Files: src/if_python3.c
*** ../vim-8.1.1019/src/if_python3.c 2019-02-18 22:04:52.949609091 +0100
--- src/if_python3.c 2019-03-19 22:08:39.907136767 +0100
***************
*** 799,808 ****
*/
#include "if_py_both.h"
#define GET_ATTR_STRING(name, nameobj) \
char *name = ""; \
if (PyUnicode_Check(nameobj)) \
! name = _PyUnicode_AsString(nameobj)
#define PY3OBJ_DELETED(obj) (obj->ob_base.ob_refcnt<=0)
--- 799,809 ----
*/
#include "if_py_both.h"
+ // NOTE: Must always be used at the start of a block, since it declares "name".
#define GET_ATTR_STRING(name, nameobj) \
char *name = ""; \
if (PyUnicode_Check(nameobj)) \
! name = (char *)_PyUnicode_AsString(nameobj)
#define PY3OBJ_DELETED(obj) (obj->ob_base.ob_refcnt<=0)
*** ../vim-8.1.1019/src/version.c 2019-03-19 21:59:16.268914799 +0100
--- src/version.c 2019-03-19 22:09:49.170503232 +0100
***************
*** 781,782 ****
--- 781,784 ----
{ /* Add new patch number below this line */
+ /**/
+ 1020,
/**/
--
From "know your smileys":
:-)-O Smiling doctor with stethoscope
/// 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 ///
|