Commit ada4afa7 authored by Jeremy Hylton's avatar Jeremy Hylton

gcc -Wall cleanup

Add braces and func decl as prototype.
parent eaa9edfe
...@@ -149,7 +149,7 @@ persistent_id_call(persistent_id *self, PyObject *args, PyObject *kwargs) ...@@ -149,7 +149,7 @@ persistent_id_call(persistent_id *self, PyObject *args, PyObject *kwargs)
Yee ha! Yee ha!
(Also get klass along the way.) (Also get klass along the way.)
*/ */
if (! PyExtensionClass_Check(object)) if (! PyExtensionClass_Check(object)) {
if (PyExtensionInstance_Check(object)) if (PyExtensionInstance_Check(object))
{ {
UNLESS (klass=PyObject_GetAttr(object, py___class__)) UNLESS (klass=PyObject_GetAttr(object, py___class__))
...@@ -165,7 +165,7 @@ persistent_id_call(persistent_id *self, PyObject *args, PyObject *kwargs) ...@@ -165,7 +165,7 @@ persistent_id_call(persistent_id *self, PyObject *args, PyObject *kwargs)
goto not_persistent; goto not_persistent;
} }
else } else
goto not_persistent; goto not_persistent;
UNLESS (oid=PyObject_GetAttr(object, py__p_oid)) UNLESS (oid=PyObject_GetAttr(object, py__p_oid))
...@@ -314,10 +314,10 @@ static struct PyMethodDef Module_Level__methods[] = { ...@@ -314,10 +314,10 @@ static struct PyMethodDef Module_Level__methods[] = {
}; };
void void
initcoptimizations() initcoptimizations(void)
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.9 $"; char *rev="$Revision: 1.10 $";
#define make_string(S) if (! (py_ ## S=PyString_FromString(#S))) return #define make_string(S) if (! (py_ ## S=PyString_FromString(#S))) return
make_string(_p_oid); make_string(_p_oid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment