Commit 4b967468 authored by Jim Fulton's avatar Jim Fulton

Rearranged to make SGI compiler happy.

parent c5a0061f
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE. DAMAGE.
$Id: Acquisition.c,v 1.28 1999/07/07 18:24:54 jim Exp $ $Id: Acquisition.c,v 1.29 1999/07/11 13:49:08 jim Exp $
If you have questions regarding this software, If you have questions regarding this software,
contact: contact:
...@@ -299,13 +299,15 @@ Wrapper_special(Wrapper *self, char *name, PyObject *oname) ...@@ -299,13 +299,15 @@ Wrapper_special(Wrapper *self, char *name, PyObject *oname)
r=self->obj; r=self->obj;
while (isWrapper(r) && WRAPPER(r)->obj) while (isWrapper(r) && WRAPPER(r)->obj)
{ {
OBJECT(self)=r; self=WRAPPER(r);
r=WRAPPER(r)->obj; r=WRAPPER(r)->obj;
} }
r=OBJECT(self);
} }
else OBJECT(self)=Py_None; else r=Py_None;
Py_INCREF(self);
return OBJECT(self); Py_INCREF(r);
return r;
} }
break; break;
...@@ -959,7 +961,7 @@ void ...@@ -959,7 +961,7 @@ void
initAcquisition() initAcquisition()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.28 $"; char *rev="$Revision: 1.29 $";
PURE_MIXIN_CLASS(Acquirer, PURE_MIXIN_CLASS(Acquirer,
"Base class for objects that implicitly" "Base class for objects that implicitly"
" acquire attributes from containers\n" " acquire attributes from containers\n"
...@@ -978,7 +980,7 @@ initAcquisition() ...@@ -978,7 +980,7 @@ initAcquisition()
/* Create the module and add the functions */ /* Create the module and add the functions */
m = Py_InitModule4("Acquisition", methods, m = Py_InitModule4("Acquisition", methods,
"Provide base classes for acquiring objects\n\n" "Provide base classes for acquiring objects\n\n"
"$Id: Acquisition.c,v 1.28 1999/07/07 18:24:54 jim Exp $\n", "$Id: Acquisition.c,v 1.29 1999/07/11 13:49:08 jim Exp $\n",
OBJECT(NULL),PYTHON_API_VERSION); OBJECT(NULL),PYTHON_API_VERSION);
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE. DAMAGE.
$Id: Acquisition.c,v 1.28 1999/07/07 18:24:54 jim Exp $ $Id: Acquisition.c,v 1.29 1999/07/11 13:49:08 jim Exp $
If you have questions regarding this software, If you have questions regarding this software,
contact: contact:
...@@ -299,13 +299,15 @@ Wrapper_special(Wrapper *self, char *name, PyObject *oname) ...@@ -299,13 +299,15 @@ Wrapper_special(Wrapper *self, char *name, PyObject *oname)
r=self->obj; r=self->obj;
while (isWrapper(r) && WRAPPER(r)->obj) while (isWrapper(r) && WRAPPER(r)->obj)
{ {
OBJECT(self)=r; self=WRAPPER(r);
r=WRAPPER(r)->obj; r=WRAPPER(r)->obj;
} }
r=OBJECT(self);
} }
else OBJECT(self)=Py_None; else r=Py_None;
Py_INCREF(self);
return OBJECT(self); Py_INCREF(r);
return r;
} }
break; break;
...@@ -959,7 +961,7 @@ void ...@@ -959,7 +961,7 @@ void
initAcquisition() initAcquisition()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.28 $"; char *rev="$Revision: 1.29 $";
PURE_MIXIN_CLASS(Acquirer, PURE_MIXIN_CLASS(Acquirer,
"Base class for objects that implicitly" "Base class for objects that implicitly"
" acquire attributes from containers\n" " acquire attributes from containers\n"
...@@ -978,7 +980,7 @@ initAcquisition() ...@@ -978,7 +980,7 @@ initAcquisition()
/* Create the module and add the functions */ /* Create the module and add the functions */
m = Py_InitModule4("Acquisition", methods, m = Py_InitModule4("Acquisition", methods,
"Provide base classes for acquiring objects\n\n" "Provide base classes for acquiring objects\n\n"
"$Id: Acquisition.c,v 1.28 1999/07/07 18:24:54 jim Exp $\n", "$Id: Acquisition.c,v 1.29 1999/07/11 13:49:08 jim Exp $\n",
OBJECT(NULL),PYTHON_API_VERSION); OBJECT(NULL),PYTHON_API_VERSION);
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
......
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