[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12906] trunk/blender/source/blender/ python/api2_5x: 2 more py 2.4 compat defines

Campbell Barton ideasman42 at gmail.com
Sun Dec 16 06:38:01 CET 2007


Revision: 12906
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12906
Author:   campbellbarton
Date:     2007-12-16 06:38:00 +0100 (Sun, 16 Dec 2007)

Log Message:
-----------
2 more py 2.4 compat defines

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_5x/bpy_list.c
    trunk/blender/source/blender/python/api2_5x/gen_utils.h
    trunk/blender/source/blender/python/api2_5x/layer_set.c

Modified: trunk/blender/source/blender/python/api2_5x/bpy_list.c
===================================================================
--- trunk/blender/source/blender/python/api2_5x/bpy_list.c	2007-12-16 05:25:52 UTC (rev 12905)
+++ trunk/blender/source/blender/python/api2_5x/bpy_list.c	2007-12-16 05:38:00 UTC (rev 12906)
@@ -482,7 +482,7 @@
 }
 
 static PySequenceMethods BPyList_as_sequence = {
-	(inquiry)BPyList_length,			/* sq_length */
+	(lenfunc)BPyList_length,			/* sq_length */
 	(binaryfunc)BPyList_concat,		/* sq_concat */
 	(ssizeargfunc)BPyList_repeat,		/* sq_repeat */
 	(ssizeargfunc)BPyList_item,		/* sq_item */
@@ -513,7 +513,7 @@
 }
 
 static PyMappingMethods BPyList_as_mapping = {
-	(inquiry)BPyList_length,
+	(lenfunc)BPyList_length,
 	(binaryfunc)BPyList_subscript,
 	(objobjargproc)BPyList_ass_subscript
 };

Modified: trunk/blender/source/blender/python/api2_5x/gen_utils.h
===================================================================
--- trunk/blender/source/blender/python/api2_5x/gen_utils.h	2007-12-16 05:25:52 UTC (rev 12905)
+++ trunk/blender/source/blender/python/api2_5x/gen_utils.h	2007-12-16 05:38:00 UTC (rev 12906)
@@ -73,6 +73,8 @@
 typedef int Py_ssize_t;
 #define PY_SSIZE_T_MAX INT_MAX
 #define PY_SSIZE_T_MIN INT_MIN
+#define lenfunc inquiry
+#define ssizeargfunc intargfunc
 #else  
 /* Py 2.5 and later */
 #define  intargfunc  ssizeargfunc

Modified: trunk/blender/source/blender/python/api2_5x/layer_set.c
===================================================================
--- trunk/blender/source/blender/python/api2_5x/layer_set.c	2007-12-16 05:25:52 UTC (rev 12905)
+++ trunk/blender/source/blender/python/api2_5x/layer_set.c	2007-12-16 05:38:00 UTC (rev 12906)
@@ -276,7 +276,7 @@
 
 static PyObject * LayerSet_contains(BPyLayerSetObject *self, PyObject *key);
 static PySequenceMethods LayerSet_as_sequence = {
-	(inquiry)LayerSet_length,		/* sq_length */
+	(lenfunc)LayerSet_length,		/* sq_length */
 	0,								/* sq_concat */
 	0,								/* sq_repeat */
 	0,								/* sq_item */





More information about the Bf-blender-cvs mailing list