|
|
dcaee6 |
To: vim_dev@googlegroups.com
|
|
|
dcaee6 |
Subject: Patch 7.4.153
|
|
|
dcaee6 |
Fcc: outbox
|
|
|
dcaee6 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
dcaee6 |
Mime-Version: 1.0
|
|
|
dcaee6 |
Content-Type: text/plain; charset=UTF-8
|
|
|
dcaee6 |
Content-Transfer-Encoding: 8bit
|
|
|
dcaee6 |
------------
|
|
|
dcaee6 |
|
|
|
dcaee6 |
Patch 7.4.153
|
|
|
dcaee6 |
Problem: Compiler warning for pointer type.
|
|
|
dcaee6 |
Solution: Add type cast.
|
|
|
dcaee6 |
Files: src/if_py_both.h, src/if_python.c, src/if_python3.c
|
|
|
dcaee6 |
|
|
|
dcaee6 |
|
|
|
dcaee6 |
*** ../vim-7.4.152/src/if_py_both.h 2014-01-14 16:54:53.000000000 +0100
|
|
|
dcaee6 |
--- src/if_py_both.h 2014-01-14 18:54:47.000000000 +0100
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 2326,2332 ****
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
Py_ssize_t start, stop, step, slicelen;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx(idx, ListLength(self),
|
|
|
dcaee6 |
&start, &stop, &step, &slicelen) < 0)
|
|
|
dcaee6 |
return NULL;
|
|
|
dcaee6 |
return ListSlice(self, start, step, slicelen);
|
|
|
dcaee6 |
--- 2326,2332 ----
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
Py_ssize_t start, stop, step, slicelen;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx((PySliceObject *)idx, ListLength(self),
|
|
|
dcaee6 |
&start, &stop, &step, &slicelen) < 0)
|
|
|
dcaee6 |
return NULL;
|
|
|
dcaee6 |
return ListSlice(self, start, step, slicelen);
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 2616,2622 ****
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
Py_ssize_t start, stop, step, slicelen;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx(idx, ListLength(self),
|
|
|
dcaee6 |
&start, &stop, &step, &slicelen) < 0)
|
|
|
dcaee6 |
return -1;
|
|
|
dcaee6 |
return ListAssSlice(self, start, step, slicelen,
|
|
|
dcaee6 |
--- 2616,2622 ----
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
Py_ssize_t start, stop, step, slicelen;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx((PySliceObject *)idx, ListLength(self),
|
|
|
dcaee6 |
&start, &stop, &step, &slicelen) < 0)
|
|
|
dcaee6 |
return -1;
|
|
|
dcaee6 |
return ListAssSlice(self, start, step, slicelen,
|
|
|
dcaee6 |
*** ../vim-7.4.152/src/if_python.c 2014-01-14 16:36:40.000000000 +0100
|
|
|
dcaee6 |
--- src/if_python.c 2014-01-14 18:56:41.000000000 +0100
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 343,349 ****
|
|
|
dcaee6 |
static PyInt(*dll_PyTuple_Size)(PyObject *);
|
|
|
dcaee6 |
static PyObject*(*dll_PyTuple_GetItem)(PyObject *, PyInt);
|
|
|
dcaee6 |
static PyTypeObject* dll_PyTuple_Type;
|
|
|
dcaee6 |
! static int (*dll_PySlice_GetIndicesEx)(PyObject *r, PyInt length,
|
|
|
dcaee6 |
PyInt *start, PyInt *stop, PyInt *step,
|
|
|
dcaee6 |
PyInt *slicelen);
|
|
|
dcaee6 |
static PyObject*(*dll_PyImport_ImportModule)(const char *);
|
|
|
dcaee6 |
--- 343,349 ----
|
|
|
dcaee6 |
static PyInt(*dll_PyTuple_Size)(PyObject *);
|
|
|
dcaee6 |
static PyObject*(*dll_PyTuple_GetItem)(PyObject *, PyInt);
|
|
|
dcaee6 |
static PyTypeObject* dll_PyTuple_Type;
|
|
|
dcaee6 |
! static int (*dll_PySlice_GetIndicesEx)(PySliceObject *r, PyInt length,
|
|
|
dcaee6 |
PyInt *start, PyInt *stop, PyInt *step,
|
|
|
dcaee6 |
PyInt *slicelen);
|
|
|
dcaee6 |
static PyObject*(*dll_PyImport_ImportModule)(const char *);
|
|
|
dcaee6 |
*** ../vim-7.4.152/src/if_python3.c 2014-01-14 16:36:40.000000000 +0100
|
|
|
dcaee6 |
--- src/if_python3.c 2014-01-14 18:58:19.000000000 +0100
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 294,300 ****
|
|
|
dcaee6 |
static PyObject* (*py3_PyTuple_GetItem)(PyObject *, Py_ssize_t);
|
|
|
dcaee6 |
static int (*py3_PyMapping_Check)(PyObject *);
|
|
|
dcaee6 |
static PyObject* (*py3_PyMapping_Keys)(PyObject *);
|
|
|
dcaee6 |
! static int (*py3_PySlice_GetIndicesEx)(PyObject *r, Py_ssize_t length,
|
|
|
dcaee6 |
Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step,
|
|
|
dcaee6 |
Py_ssize_t *slicelen);
|
|
|
dcaee6 |
static PyObject* (*py3_PyErr_NoMemory)(void);
|
|
|
dcaee6 |
--- 294,300 ----
|
|
|
dcaee6 |
static PyObject* (*py3_PyTuple_GetItem)(PyObject *, Py_ssize_t);
|
|
|
dcaee6 |
static int (*py3_PyMapping_Check)(PyObject *);
|
|
|
dcaee6 |
static PyObject* (*py3_PyMapping_Keys)(PyObject *);
|
|
|
dcaee6 |
! static int (*py3_PySlice_GetIndicesEx)(PySliceObject *r, Py_ssize_t length,
|
|
|
dcaee6 |
Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step,
|
|
|
dcaee6 |
Py_ssize_t *slicelen);
|
|
|
dcaee6 |
static PyObject* (*py3_PyErr_NoMemory)(void);
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 1190,1196 ****
|
|
|
dcaee6 |
if (CheckBuffer((BufferObject *) self))
|
|
|
dcaee6 |
return NULL;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx((PyObject *)idx,
|
|
|
dcaee6 |
(Py_ssize_t)((BufferObject *)(self))->buf->b_ml.ml_line_count,
|
|
|
dcaee6 |
&start, &stop,
|
|
|
dcaee6 |
&step, &slicelen) < 0)
|
|
|
dcaee6 |
--- 1190,1196 ----
|
|
|
dcaee6 |
if (CheckBuffer((BufferObject *) self))
|
|
|
dcaee6 |
return NULL;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx((PySliceObject *)idx,
|
|
|
dcaee6 |
(Py_ssize_t)((BufferObject *)(self))->buf->b_ml.ml_line_count,
|
|
|
dcaee6 |
&start, &stop,
|
|
|
dcaee6 |
&step, &slicelen) < 0)
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 1222,1228 ****
|
|
|
dcaee6 |
if (CheckBuffer((BufferObject *) self))
|
|
|
dcaee6 |
return -1;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx((PyObject *)idx,
|
|
|
dcaee6 |
(Py_ssize_t)((BufferObject *)(self))->buf->b_ml.ml_line_count,
|
|
|
dcaee6 |
&start, &stop,
|
|
|
dcaee6 |
&step, &slicelen) < 0)
|
|
|
dcaee6 |
--- 1222,1228 ----
|
|
|
dcaee6 |
if (CheckBuffer((BufferObject *) self))
|
|
|
dcaee6 |
return -1;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx((PySliceObject *)idx,
|
|
|
dcaee6 |
(Py_ssize_t)((BufferObject *)(self))->buf->b_ml.ml_line_count,
|
|
|
dcaee6 |
&start, &stop,
|
|
|
dcaee6 |
&step, &slicelen) < 0)
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 1306,1312 ****
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
Py_ssize_t start, stop, step, slicelen;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx((PyObject *)idx,
|
|
|
dcaee6 |
((RangeObject *)(self))->end-((RangeObject *)(self))->start+1,
|
|
|
dcaee6 |
&start, &stop,
|
|
|
dcaee6 |
&step, &slicelen) < 0)
|
|
|
dcaee6 |
--- 1306,1312 ----
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
Py_ssize_t start, stop, step, slicelen;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx((PySliceObject *)idx,
|
|
|
dcaee6 |
((RangeObject *)(self))->end-((RangeObject *)(self))->start+1,
|
|
|
dcaee6 |
&start, &stop,
|
|
|
dcaee6 |
&step, &slicelen) < 0)
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 1333,1339 ****
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
Py_ssize_t start, stop, step, slicelen;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx((PyObject *)idx,
|
|
|
dcaee6 |
((RangeObject *)(self))->end-((RangeObject *)(self))->start+1,
|
|
|
dcaee6 |
&start, &stop,
|
|
|
dcaee6 |
&step, &slicelen) < 0)
|
|
|
dcaee6 |
--- 1333,1339 ----
|
|
|
dcaee6 |
{
|
|
|
dcaee6 |
Py_ssize_t start, stop, step, slicelen;
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (PySlice_GetIndicesEx((PySliceObject *)idx,
|
|
|
dcaee6 |
((RangeObject *)(self))->end-((RangeObject *)(self))->start+1,
|
|
|
dcaee6 |
&start, &stop,
|
|
|
dcaee6 |
&step, &slicelen) < 0)
|
|
|
dcaee6 |
*** ../vim-7.4.152/src/version.c 2014-01-14 16:54:53.000000000 +0100
|
|
|
dcaee6 |
--- src/version.c 2014-01-14 18:54:01.000000000 +0100
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 740,741 ****
|
|
|
dcaee6 |
--- 740,743 ----
|
|
|
dcaee6 |
{ /* Add new patch number below this line */
|
|
|
dcaee6 |
+ /**/
|
|
|
dcaee6 |
+ 153,
|
|
|
dcaee6 |
/**/
|
|
|
dcaee6 |
|
|
|
dcaee6 |
--
|
|
|
dcaee6 |
hundred-and-one symptoms of being an internet addict:
|
|
|
dcaee6 |
161. You get up before the sun rises to check your e-mail, and you
|
|
|
dcaee6 |
find yourself in the very same chair long after the sun has set.
|
|
|
dcaee6 |
|
|
|
dcaee6 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
dcaee6 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
dcaee6 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
dcaee6 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|