]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.967 v7.3.967
authorBram Moolenaar <Bram@vim.org>
Fri, 17 May 2013 19:20:17 +0000 (21:20 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 17 May 2013 19:20:17 +0000 (21:20 +0200)
Problem:    Build fails on Mac OSX. (Greg Novack)
Solution:   Undefine clear().

src/if_py_both.h
src/version.c

index 280c24841223ee8e7c48fef65bc30215d19a1cb7..f982373a104193a06b43bee5d06c8bff37219733 100644 (file)
@@ -474,7 +474,7 @@ VimEval(PyObject *self UNUSED, PyObject *args UNUSED)
 static PyObject *ConvertToPyObject(typval_T *);
 
     static PyObject *
-VimEvalPy(PyObject *self UNUSED, PyObject *args UNUSED)
+VimEvalPy(PyObject *self UNUSED, PyObject *args)
 {
     char       *expr;
     typval_T   *our_tv;
@@ -547,9 +547,9 @@ typedef void (*destructorfun)(void *);
 typedef int (*traversefun)(void *, visitproc, void *);
 typedef int (*clearfun)(void **);
 
-/* Main purpose of this object is removing the need for do python initialization 
- * (i.e. PyType_Ready and setting type attributes) for a big bunch of objects.
- */
+/* Main purpose of this object is removing the need for do python
+ * initialization (i.e. PyType_Ready and setting type attributes) for a big
+ * bunch of objects. */
 
 typedef struct
 {
@@ -598,6 +598,11 @@ IterTraverse(PyObject *self, visitproc visit, void *arg)
        return 0;
 }
 
+/* Mac OSX defines clear() somewhere. */
+#ifdef clear
+# undef clear
+#endif
+
     static int
 IterClear(PyObject *self)
 {
@@ -3287,9 +3292,8 @@ BufMapIterNext(PyObject **buffer)
     else if (!(next = BufferNew(((BufferObject *)(r))->buf->b_next)))
        return NULL;
     *buffer = next;
-    /* Do not increment reference: we no longer hold it (decref), but whoever on 
-     * other side will hold (incref). Decref+incref = nothing.
-     */
+    /* Do not increment reference: we no longer hold it (decref), but whoever
+     * on other side will hold (incref). Decref+incref = nothing. */
     return r;
 }
 
index 97611e487ade5500bd10d10fb372dd420a28dda0..40d144e8551789d7e4a75a0b8dc1ffba1d0f986e 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    967,
 /**/
     966,
 /**/