[Zodb-checkins] CVS: Zope2/lib/python/ZODB - coptimizations.c:1.10
jeremy@digicool.com
jeremy@digicool.com
Tue, 27 Mar 2001 19:35:39 -0500 (EST)
Update of /cvs-repository/Zope2/lib/python/ZODB
In directory korak:/tmp/cvs-serv22098
Modified Files:
coptimizations.c
Log Message:
gcc -Wall cleanup
Add braces and func decl as prototype.
--- Updated File coptimizations.c in package Zope2/lib/python/ZODB --
--- coptimizations.c 2000/05/26 18:57:30 1.9
+++ coptimizations.c 2001/03/28 00:35:37 1.10
@@ -149,7 +149,7 @@
Yee ha!
(Also get klass along the way.)
*/
- if (! PyExtensionClass_Check(object))
+ if (! PyExtensionClass_Check(object)) {
if (PyExtensionInstance_Check(object))
{
UNLESS (klass=PyObject_GetAttr(object, py___class__))
@@ -165,7 +165,7 @@
goto not_persistent;
}
- else
+ } else
goto not_persistent;
UNLESS (oid=PyObject_GetAttr(object, py__p_oid))
@@ -314,7 +314,7 @@
};
void
-initcoptimizations()
+initcoptimizations(void)
{
PyObject *m, *d;
char *rev="$Revision$";