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.939 < prev    next >
Encoding:
Internet Message Format  |  2013-05-11  |  2.0 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.939
  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.939
  11. Problem:    Using Py_BuildValue is inefficient sometimes.
  12. Solution:   Use PyLong_FromLong(). (ZyX)
  13. Files:        src/if_py_both.h
  14.  
  15.  
  16. *** ../vim-7.3.938/src/if_py_both.h    2013-05-12 19:00:36.000000000 +0200
  17. --- src/if_py_both.h    2013-05-12 19:08:24.000000000 +0200
  18. ***************
  19. *** 1838,1847 ****
  20.       return Py_BuildValue("(ll)", (long)(pos->lnum), (long)(pos->col));
  21.       }
  22.       else if (strcmp(name, "height") == 0)
  23. !     return Py_BuildValue("l", (long)(this->win->w_height));
  24.   #ifdef FEAT_VERTSPLIT
  25.       else if (strcmp(name, "width") == 0)
  26. !     return Py_BuildValue("l", (long)(W_WIDTH(this->win)));
  27.   #endif
  28.       else if (strcmp(name, "vars") == 0)
  29.       return DictionaryNew(this->win->w_vars);
  30. --- 1838,1847 ----
  31.       return Py_BuildValue("(ll)", (long)(pos->lnum), (long)(pos->col));
  32.       }
  33.       else if (strcmp(name, "height") == 0)
  34. !     return PyLong_FromLong((long)(this->win->w_height));
  35.   #ifdef FEAT_VERTSPLIT
  36.       else if (strcmp(name, "width") == 0)
  37. !     return PyLong_FromLong((long)(W_WIDTH(this->win)));
  38.   #endif
  39.       else if (strcmp(name, "vars") == 0)
  40.       return DictionaryNew(this->win->w_vars);
  41. *** ../vim-7.3.938/src/version.c    2013-05-12 19:00:36.000000000 +0200
  42. --- src/version.c    2013-05-12 19:09:19.000000000 +0200
  43. ***************
  44. *** 730,731 ****
  45. --- 730,733 ----
  46.   {   /* Add new patch number below this line */
  47. + /**/
  48. +     939,
  49.   /**/
  50.  
  51. -- 
  52. A mathematician is a device for turning coffee into theorems.
  53.                     Paul Erdos
  54. A computer programmer is a device for turning coffee into bugs.
  55.                     Bram Moolenaar
  56.  
  57.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  58. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  59. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  60.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  61.