]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.939 v7.3.939
authorBram Moolenaar <Bram@vim.org>
Sun, 12 May 2013 17:09:51 +0000 (19:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 12 May 2013 17:09:51 +0000 (19:09 +0200)
Problem:    Using Py_BuildValue is inefficient sometimes.
Solution:   Use PyLong_FromLong(). (ZyX)

src/if_py_both.h
src/version.c

index f8b51b7a3285f9c35e86a7726282611ffbb018a1..dc9be3ad2dfa01172a82c673c12751d960b3ca97 100644 (file)
@@ -1838,10 +1838,10 @@ WindowAttr(WindowObject *this, char *name)
        return Py_BuildValue("(ll)", (long)(pos->lnum), (long)(pos->col));
     }
     else if (strcmp(name, "height") == 0)
-       return Py_BuildValue("l", (long)(this->win->w_height));
+       return PyLong_FromLong((long)(this->win->w_height));
 #ifdef FEAT_VERTSPLIT
     else if (strcmp(name, "width") == 0)
-       return Py_BuildValue("l", (long)(W_WIDTH(this->win)));
+       return PyLong_FromLong((long)(W_WIDTH(this->win)));
 #endif
     else if (strcmp(name, "vars") == 0)
        return DictionaryNew(this->win->w_vars);
index f6d3840d849d0747c01b3ebdf785e3bb4ef39fd8..8e311b861b455ead6f27b1f3af4e183127d54766 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    939,
 /**/
     938,
 /**/