Karsten Hopp 7fe819
To: vim_dev@googlegroups.com
Karsten Hopp 7fe819
Subject: Patch 7.3.1239
Karsten Hopp 7fe819
Fcc: outbox
Karsten Hopp 7fe819
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 7fe819
Mime-Version: 1.0
Karsten Hopp 7fe819
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 7fe819
Content-Transfer-Encoding: 8bit
Karsten Hopp 7fe819
------------
Karsten Hopp 7fe819
Karsten Hopp 7fe819
Patch 7.3.1239
Karsten Hopp 7fe819
Problem:    Can't build with Python and MSVC10.
Karsten Hopp 7fe819
Solution:   Move #if outside of macro. (Taro Muraoka)
Karsten Hopp 7fe819
Files:	    src/if_py_both.h
Karsten Hopp 7fe819
Karsten Hopp 7fe819
Karsten Hopp 7fe819
*** ../vim-7.3.1238/src/if_py_both.h	2013-06-23 16:40:34.000000000 +0200
Karsten Hopp 7fe819
--- src/if_py_both.h	2013-06-24 21:21:03.000000000 +0200
Karsten Hopp 7fe819
***************
Karsten Hopp 7fe819
*** 139,151 ****
Karsten Hopp 7fe819
      }
Karsten Hopp 7fe819
      else
Karsten Hopp 7fe819
      {
Karsten Hopp 7fe819
- 	PyErr_FORMAT(PyExc_TypeError,
Karsten Hopp 7fe819
  #if PY_MAJOR_VERSION < 3
Karsten Hopp 7fe819
! 		N_("expected str() or unicode() instance, but got %s")
Karsten Hopp 7fe819
  #else
Karsten Hopp 7fe819
! 		N_("expected bytes() or str() instance, but got %s")
Karsten Hopp 7fe819
  #endif
Karsten Hopp 7fe819
- 		, Py_TYPE_NAME(obj));
Karsten Hopp 7fe819
  	return NULL;
Karsten Hopp 7fe819
      }
Karsten Hopp 7fe819
  
Karsten Hopp 7fe819
--- 139,153 ----
Karsten Hopp 7fe819
      }
Karsten Hopp 7fe819
      else
Karsten Hopp 7fe819
      {
Karsten Hopp 7fe819
  #if PY_MAJOR_VERSION < 3
Karsten Hopp 7fe819
! 	PyErr_FORMAT(PyExc_TypeError,
Karsten Hopp 7fe819
! 		N_("expected str() or unicode() instance, but got %s"),
Karsten Hopp 7fe819
! 		Py_TYPE_NAME(obj));
Karsten Hopp 7fe819
  #else
Karsten Hopp 7fe819
! 	PyErr_FORMAT(PyExc_TypeError,
Karsten Hopp 7fe819
! 		N_("expected bytes() or str() instance, but got %s"),
Karsten Hopp 7fe819
! 		Py_TYPE_NAME(obj));
Karsten Hopp 7fe819
  #endif
Karsten Hopp 7fe819
  	return NULL;
Karsten Hopp 7fe819
      }
Karsten Hopp 7fe819
  
Karsten Hopp 7fe819
***************
Karsten Hopp 7fe819
*** 191,205 ****
Karsten Hopp 7fe819
      }
Karsten Hopp 7fe819
      else
Karsten Hopp 7fe819
      {
Karsten Hopp 7fe819
- 	PyErr_FORMAT(PyExc_TypeError,
Karsten Hopp 7fe819
  #if PY_MAJOR_VERSION < 3
Karsten Hopp 7fe819
  		N_("expected int(), long() or something supporting "
Karsten Hopp 7fe819
! 		   "coercing to long(), but got %s")
Karsten Hopp 7fe819
  #else
Karsten Hopp 7fe819
  		N_("expected int() or something supporting coercing to int(), "
Karsten Hopp 7fe819
! 		   "but got %s")
Karsten Hopp 7fe819
  #endif
Karsten Hopp 7fe819
- 		, Py_TYPE_NAME(obj));
Karsten Hopp 7fe819
  	return -1;
Karsten Hopp 7fe819
      }
Karsten Hopp 7fe819
  
Karsten Hopp 7fe819
--- 193,209 ----
Karsten Hopp 7fe819
      }
Karsten Hopp 7fe819
      else
Karsten Hopp 7fe819
      {
Karsten Hopp 7fe819
  #if PY_MAJOR_VERSION < 3
Karsten Hopp 7fe819
+ 	PyErr_FORMAT(PyExc_TypeError,
Karsten Hopp 7fe819
  		N_("expected int(), long() or something supporting "
Karsten Hopp 7fe819
! 		   "coercing to long(), but got %s"),
Karsten Hopp 7fe819
! 		Py_TYPE_NAME(obj));
Karsten Hopp 7fe819
  #else
Karsten Hopp 7fe819
+ 	PyErr_FORMAT(PyExc_TypeError,
Karsten Hopp 7fe819
  		N_("expected int() or something supporting coercing to int(), "
Karsten Hopp 7fe819
! 		   "but got %s"),
Karsten Hopp 7fe819
! 		Py_TYPE_NAME(obj));
Karsten Hopp 7fe819
  #endif
Karsten Hopp 7fe819
  	return -1;
Karsten Hopp 7fe819
      }
Karsten Hopp 7fe819
  
Karsten Hopp 7fe819
*** ../vim-7.3.1238/src/version.c	2013-06-24 20:32:54.000000000 +0200
Karsten Hopp 7fe819
--- src/version.c	2013-06-24 21:19:04.000000000 +0200
Karsten Hopp 7fe819
***************
Karsten Hopp 7fe819
*** 730,731 ****
Karsten Hopp 7fe819
--- 730,733 ----
Karsten Hopp 7fe819
  {   /* Add new patch number below this line */
Karsten Hopp 7fe819
+ /**/
Karsten Hopp 7fe819
+     1239,
Karsten Hopp 7fe819
  /**/
Karsten Hopp 7fe819
Karsten Hopp 7fe819
-- 
Karsten Hopp 7fe819
   GALAHAD hurries to the door and pushes through it.  As he leaves the room
Karsten Hopp 7fe819
   we CUT TO the reverse to show that he is now in a room full of bathing
Karsten Hopp 7fe819
   and romping GIRLIES, all innocent, wide-eyed and beautiful.  They smile
Karsten Hopp 7fe819
   enchantingly at him as he tries to keep walking without being diverted by
Karsten Hopp 7fe819
   the lovely sights assaulting his eyeballs.
Karsten Hopp 7fe819
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 7fe819
Karsten Hopp 7fe819
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 7fe819
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 7fe819
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 7fe819
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///