1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
10 Patch 7.3.309 (after 7.3.307)
11 Problem: Warnings for pointer types.
12 Solution: Change PySliceObject to PyObject.
13 Files: src/if_python3.c
16 *** ../vim-7.3.308/src/if_python3.c 2011-09-14 15:01:54.000000000 +0200
17 --- src/if_python3.c 2011-09-14 15:30:45.000000000 +0200
20 } else if (PySlice_Check(idx)) {
21 Py_ssize_t start, stop, step, slicelen;
23 ! if (PySlice_GetIndicesEx((PySliceObject *)idx,
24 (Py_ssize_t)((BufferObject *)(self))->buf->b_ml.ml_line_count+1,
26 &step, &slicelen) < 0) {
28 } else if (PySlice_Check(idx)) {
29 Py_ssize_t start, stop, step, slicelen;
31 ! if (PySlice_GetIndicesEx((PyObject *)idx,
32 (Py_ssize_t)((BufferObject *)(self))->buf->b_ml.ml_line_count+1,
34 &step, &slicelen) < 0) {
37 } else if (PySlice_Check(idx)) {
38 Py_ssize_t start, stop, step, slicelen;
40 ! if (PySlice_GetIndicesEx((PySliceObject *)idx,
41 (Py_ssize_t)((BufferObject *)(self))->buf->b_ml.ml_line_count+1,
43 &step, &slicelen) < 0) {
45 } else if (PySlice_Check(idx)) {
46 Py_ssize_t start, stop, step, slicelen;
48 ! if (PySlice_GetIndicesEx((PyObject *)idx,
49 (Py_ssize_t)((BufferObject *)(self))->buf->b_ml.ml_line_count+1,
51 &step, &slicelen) < 0) {
54 } else if (PySlice_Check(idx)) {
55 Py_ssize_t start, stop, step, slicelen;
57 ! if (PySlice_GetIndicesEx((PySliceObject *)idx,
58 ((RangeObject *)(self))->end-((RangeObject *)(self))->start+1,
60 &step, &slicelen) < 0) {
62 } else if (PySlice_Check(idx)) {
63 Py_ssize_t start, stop, step, slicelen;
65 ! if (PySlice_GetIndicesEx((PyObject *)idx,
66 ((RangeObject *)(self))->end-((RangeObject *)(self))->start+1,
68 &step, &slicelen) < 0) {
71 } else if (PySlice_Check(idx)) {
72 Py_ssize_t start, stop, step, slicelen;
74 ! if (PySlice_GetIndicesEx((PySliceObject *)idx,
75 ((RangeObject *)(self))->end-((RangeObject *)(self))->start+1,
77 &step, &slicelen) < 0) {
79 } else if (PySlice_Check(idx)) {
80 Py_ssize_t start, stop, step, slicelen;
82 ! if (PySlice_GetIndicesEx((PyObject *)idx,
83 ((RangeObject *)(self))->end-((RangeObject *)(self))->start+1,
85 &step, &slicelen) < 0) {
86 *** ../vim-7.3.308/src/version.c 2011-09-14 15:39:26.000000000 +0200
87 --- src/version.c 2011-09-14 15:40:17.000000000 +0200
91 { /* Add new patch number below this line */
97 Never enter the boss's office unless it's absolutely necessary. Every boss
98 saves one corner of the desk for useless assignments that are doled out like
99 Halloween candy to each visitor.
100 (Scott Adams - The Dilbert principle)
102 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
103 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
104 \\\ an exciting new programming language -- http://www.Zimbu.org ///
105 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///