From 3328cf0d2df10b1ae3329bb3852be23e4aaec681 Mon Sep 17 00:00:00 2001 From: Willian Padovani Germano Date: Sat, 5 Jul 2003 01:44:32 +0000 Subject: [PATCH] Exppython: small update to fix a warning and a compile problem. --- source/blender/python/api2_2x/EXPP_interface.c | 2 +- source/blender/python/api2_2x/World.c | 2 +- source/blender/python/api2_2x/rgbTuple.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/blender/python/api2_2x/EXPP_interface.c b/source/blender/python/api2_2x/EXPP_interface.c index 56a71112c62..3cf966ab5cd 100644 --- a/source/blender/python/api2_2x/EXPP_interface.c +++ b/source/blender/python/api2_2x/EXPP_interface.c @@ -24,7 +24,7 @@ * * This is a new part of Blender. * - * Contributor(s): Michel Selten + * Contributor(s): Michel Selten, Willian P. Germano * * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ diff --git a/source/blender/python/api2_2x/World.c b/source/blender/python/api2_2x/World.c index feb94c91037..af819c968c7 100644 --- a/source/blender/python/api2_2x/World.c +++ b/source/blender/python/api2_2x/World.c @@ -55,7 +55,7 @@ /* Python World_Type callback function prototypes: */ /*****************************************************************************/ static void World_DeAlloc (BPy_World *self); -static int World_Print (BPy_World *self, FILE *fp, int flags); +//static int World_Print (BPy_World *self, FILE *fp, int flags); static int World_SetAttr (BPy_World *self, char *name, PyObject *v); static int World_Compare (BPy_World *a, BPy_World *b); static PyObject *World_GetAttr (BPy_World *self, char *name); diff --git a/source/blender/python/api2_2x/rgbTuple.c b/source/blender/python/api2_2x/rgbTuple.c index 2e33525fa9e..1d07c9a99ba 100644 --- a/source/blender/python/api2_2x/rgbTuple.c +++ b/source/blender/python/api2_2x/rgbTuple.c @@ -88,7 +88,7 @@ PyTypeObject rgbTuple_Type = sizeof (BPy_rgbTuple), /* tp_basicsize */ 0, /* tp_itemsize */ /* methods */ - (destructor)rgbTuple_deAlloc, /* tp_dealloc */ + (destructor)rgbTuple_dealloc, /* tp_dealloc */ 0, /* tp_print */ (getattrfunc)rgbTuple_getAttr, /* tp_getattr */ (setattrfunc)rgbTuple_setAttr, /* tp_setattr */ @@ -169,11 +169,11 @@ PyObject *rgbTuple_setCol (BPy_rgbTuple *self, PyObject *args) } /*****************************************************************************/ -/* Function: rgbTuple_deAlloc */ +/* Function: rgbTuple_dealloc */ /* Description: This is a callback function for the BPy_rgbTuple type. It is */ /* the destructor function. */ /*****************************************************************************/ -static void rgbTuple_deAlloc (BPy_rgbTuple *self) +static void rgbTuple_dealloc (BPy_rgbTuple *self) { PyObject_DEL (self); }