Karsten Hopp 51a864
To: vim_dev@googlegroups.com
Karsten Hopp 51a864
Subject: Patch 7.4.060
Karsten Hopp 51a864
Fcc: outbox
Karsten Hopp 51a864
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 51a864
Mime-Version: 1.0
Karsten Hopp 51a864
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 51a864
Content-Transfer-Encoding: 8bit
Karsten Hopp 51a864
------------
Karsten Hopp 51a864
Karsten Hopp 51a864
Patch 7.4.060
Karsten Hopp 51a864
Problem:    Declaration has wrong return type for PyObject_SetAttrString().
Karsten Hopp 51a864
Solution:   Use int instead of PyObject. (Andreas Schwab)
Karsten Hopp 51a864
Files:      src/if_python.c, src/if_python3.c
Karsten Hopp 51a864
Karsten Hopp 51a864
Karsten Hopp 51a864
*** ../vim-7.4.059/src/if_python.c	2013-07-09 21:40:11.000000000 +0200
Karsten Hopp 51a864
--- src/if_python.c	2013-11-03 00:24:57.000000000 +0100
Karsten Hopp 51a864
***************
Karsten Hopp 51a864
*** 359,365 ****
Karsten Hopp 51a864
  static PyObject *(*dll_PyRun_String)(char *, int, PyObject *, PyObject *);
Karsten Hopp 51a864
  static PyObject* (*dll_PyObject_GetAttrString)(PyObject *, const char *);
Karsten Hopp 51a864
  static int (*dll_PyObject_HasAttrString)(PyObject *, const char *);
Karsten Hopp 51a864
! static PyObject* (*dll_PyObject_SetAttrString)(PyObject *, const char *, PyObject *);
Karsten Hopp 51a864
  static PyObject* (*dll_PyObject_CallFunctionObjArgs)(PyObject *, ...);
Karsten Hopp 51a864
  static PyObject* (*dll_PyObject_CallFunction)(PyObject *, char *, ...);
Karsten Hopp 51a864
  static PyObject* (*dll_PyObject_Call)(PyObject *, PyObject *, PyObject *);
Karsten Hopp 51a864
--- 359,365 ----
Karsten Hopp 51a864
  static PyObject *(*dll_PyRun_String)(char *, int, PyObject *, PyObject *);
Karsten Hopp 51a864
  static PyObject* (*dll_PyObject_GetAttrString)(PyObject *, const char *);
Karsten Hopp 51a864
  static int (*dll_PyObject_HasAttrString)(PyObject *, const char *);
Karsten Hopp 51a864
! static int (*dll_PyObject_SetAttrString)(PyObject *, const char *, PyObject *);
Karsten Hopp 51a864
  static PyObject* (*dll_PyObject_CallFunctionObjArgs)(PyObject *, ...);
Karsten Hopp 51a864
  static PyObject* (*dll_PyObject_CallFunction)(PyObject *, char *, ...);
Karsten Hopp 51a864
  static PyObject* (*dll_PyObject_Call)(PyObject *, PyObject *, PyObject *);
Karsten Hopp 51a864
*** ../vim-7.4.059/src/if_python3.c	2013-07-09 21:53:21.000000000 +0200
Karsten Hopp 51a864
--- src/if_python3.c	2013-11-03 00:24:57.000000000 +0100
Karsten Hopp 51a864
***************
Karsten Hopp 51a864
*** 302,308 ****
Karsten Hopp 51a864
  static PyObject* (*py3_PyRun_String)(char *, int, PyObject *, PyObject *);
Karsten Hopp 51a864
  static PyObject* (*py3_PyObject_GetAttrString)(PyObject *, const char *);
Karsten Hopp 51a864
  static int (*py3_PyObject_HasAttrString)(PyObject *, const char *);
Karsten Hopp 51a864
! static PyObject* (*py3_PyObject_SetAttrString)(PyObject *, const char *, PyObject *);
Karsten Hopp 51a864
  static PyObject* (*py3_PyObject_CallFunctionObjArgs)(PyObject *, ...);
Karsten Hopp 51a864
  static PyObject* (*py3__PyObject_CallFunction_SizeT)(PyObject *, char *, ...);
Karsten Hopp 51a864
  static PyObject* (*py3_PyObject_Call)(PyObject *, PyObject *, PyObject *);
Karsten Hopp 51a864
--- 302,308 ----
Karsten Hopp 51a864
  static PyObject* (*py3_PyRun_String)(char *, int, PyObject *, PyObject *);
Karsten Hopp 51a864
  static PyObject* (*py3_PyObject_GetAttrString)(PyObject *, const char *);
Karsten Hopp 51a864
  static int (*py3_PyObject_HasAttrString)(PyObject *, const char *);
Karsten Hopp 51a864
! static int (*py3_PyObject_SetAttrString)(PyObject *, const char *, PyObject *);
Karsten Hopp 51a864
  static PyObject* (*py3_PyObject_CallFunctionObjArgs)(PyObject *, ...);
Karsten Hopp 51a864
  static PyObject* (*py3__PyObject_CallFunction_SizeT)(PyObject *, char *, ...);
Karsten Hopp 51a864
  static PyObject* (*py3_PyObject_Call)(PyObject *, PyObject *, PyObject *);
Karsten Hopp 51a864
*** ../vim-7.4.059/src/version.c	2013-11-03 00:20:46.000000000 +0100
Karsten Hopp 51a864
--- src/version.c	2013-11-03 00:26:19.000000000 +0100
Karsten Hopp 51a864
***************
Karsten Hopp 51a864
*** 740,741 ****
Karsten Hopp 51a864
--- 740,743 ----
Karsten Hopp 51a864
  {   /* Add new patch number below this line */
Karsten Hopp 51a864
+ /**/
Karsten Hopp 51a864
+     60,
Karsten Hopp 51a864
  /**/
Karsten Hopp 51a864
Karsten Hopp 51a864
-- 
Karsten Hopp 51a864
Kisses may last for as much as, but no more than, five minutes.
Karsten Hopp 51a864
		[real standing law in Iowa, United States of America]
Karsten Hopp 51a864
Karsten Hopp 51a864
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 51a864
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 51a864
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 51a864
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///