home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.1239 < prev    next >
Encoding:
Internet Message Format  |  2013-06-23  |  2.9 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.1239
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.1239
  11. Problem:    Can't build with Python and MSVC10.
  12. Solution:   Move #if outside of macro. (Taro Muraoka)
  13. Files:        src/if_py_both.h
  14.  
  15.  
  16. *** ../vim-7.3.1238/src/if_py_both.h    2013-06-23 16:40:34.000000000 +0200
  17. --- src/if_py_both.h    2013-06-24 21:21:03.000000000 +0200
  18. ***************
  19. *** 139,151 ****
  20.       }
  21.       else
  22.       {
  23. -     PyErr_FORMAT(PyExc_TypeError,
  24.   #if PY_MAJOR_VERSION < 3
  25. !         N_("expected str() or unicode() instance, but got %s")
  26.   #else
  27. !         N_("expected bytes() or str() instance, but got %s")
  28.   #endif
  29. -         , Py_TYPE_NAME(obj));
  30.       return NULL;
  31.       }
  32.   
  33. --- 139,153 ----
  34.       }
  35.       else
  36.       {
  37.   #if PY_MAJOR_VERSION < 3
  38. !     PyErr_FORMAT(PyExc_TypeError,
  39. !         N_("expected str() or unicode() instance, but got %s"),
  40. !         Py_TYPE_NAME(obj));
  41.   #else
  42. !     PyErr_FORMAT(PyExc_TypeError,
  43. !         N_("expected bytes() or str() instance, but got %s"),
  44. !         Py_TYPE_NAME(obj));
  45.   #endif
  46.       return NULL;
  47.       }
  48.   
  49. ***************
  50. *** 191,205 ****
  51.       }
  52.       else
  53.       {
  54. -     PyErr_FORMAT(PyExc_TypeError,
  55.   #if PY_MAJOR_VERSION < 3
  56.           N_("expected int(), long() or something supporting "
  57. !            "coercing to long(), but got %s")
  58.   #else
  59.           N_("expected int() or something supporting coercing to int(), "
  60. !            "but got %s")
  61.   #endif
  62. -         , Py_TYPE_NAME(obj));
  63.       return -1;
  64.       }
  65.   
  66. --- 193,209 ----
  67.       }
  68.       else
  69.       {
  70.   #if PY_MAJOR_VERSION < 3
  71. +     PyErr_FORMAT(PyExc_TypeError,
  72.           N_("expected int(), long() or something supporting "
  73. !            "coercing to long(), but got %s"),
  74. !         Py_TYPE_NAME(obj));
  75.   #else
  76. +     PyErr_FORMAT(PyExc_TypeError,
  77.           N_("expected int() or something supporting coercing to int(), "
  78. !            "but got %s"),
  79. !         Py_TYPE_NAME(obj));
  80.   #endif
  81.       return -1;
  82.       }
  83.   
  84. *** ../vim-7.3.1238/src/version.c    2013-06-24 20:32:54.000000000 +0200
  85. --- src/version.c    2013-06-24 21:19:04.000000000 +0200
  86. ***************
  87. *** 730,731 ****
  88. --- 730,733 ----
  89.   {   /* Add new patch number below this line */
  90. + /**/
  91. +     1239,
  92.   /**/
  93.  
  94. -- 
  95.    GALAHAD hurries to the door and pushes through it.  As he leaves the room
  96.    we CUT TO the reverse to show that he is now in a room full of bathing
  97.    and romping GIRLIES, all innocent, wide-eyed and beautiful.  They smile
  98.    enchantingly at him as he tries to keep walking without being diverted by
  99.    the lovely sights assaulting his eyeballs.
  100.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  101.  
  102.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  103. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  104. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  105.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  106.