[Zodb-checkins] CVS: Zope2/lib/Components/ExtensionClass - ComputedAttribute.c:1.5
shane@digicool.com
shane@digicool.com
Wed, 23 May 2001 14:28:33 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/Components/ExtensionClass/src
In directory korak.digicool.com:/tmp/cvs-serv14293
Modified Files:
ComputedAttribute.c
Log Message:
Silenced gcc warnings.
- Removed ASSIGN macros, never used.
- Changed empty parameter list to "void".
--- Updated File ComputedAttribute.c in package Zope2/lib/Components/ExtensionClass --
--- ComputedAttribute.c 2001/01/23 14:37:20 1.4
+++ ComputedAttribute.c 2001/05/23 18:28:33 1.5
@@ -46,16 +46,7 @@
*/
#include "ExtensionClass.h"
-static void
-PyVar_Assign(PyObject **v, PyObject *e)
-{
- Py_XDECREF(*v);
- *v=e;
-}
-
-#define ASSIGN(V,E) PyVar_Assign(&(V),(E))
#define UNLESS(E) if(!(E))
-#define UNLESS_ASSIGN(V,E) ASSIGN(V,E); UNLESS(V)
#define OBJECT(O) ((PyObject*)(O))
typedef struct {
@@ -142,7 +133,7 @@
};
void
-initComputedAttribute()
+initComputedAttribute(void)
{
PyObject *m, *d;
char *rev="$Revision$";