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