lkundrak / rpms / vim

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