Commit 051e65e4 authored by Jim Fulton's avatar Jim Fulton

Fixed bad return in wrapper special.

parent ff05922e
/* /*
$Id: Acquisition.c,v 1.17 1998/03/24 16:17:01 jim Exp $ $Id: Acquisition.c,v 1.18 1998/03/24 16:21:17 jim Exp $
Acquisition Wrappers -- Implementation of acquisition through wrappers Acquisition Wrappers -- Implementation of acquisition through wrappers
...@@ -256,6 +256,8 @@ Wrapper_special(Wrapper *self, char *name, PyObject *oname) ...@@ -256,6 +256,8 @@ Wrapper_special(Wrapper *self, char *name, PyObject *oname)
{ {
return Py_FindAttr(OBJECT(self),oname); return Py_FindAttr(OBJECT(self),oname);
} }
return NULL;
} }
static int static int
...@@ -857,7 +859,7 @@ void ...@@ -857,7 +859,7 @@ void
initAcquisition() initAcquisition()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.17 $"; char *rev="$Revision: 1.18 $";
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"
...@@ -876,7 +878,7 @@ initAcquisition() ...@@ -876,7 +878,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.17 1998/03/24 16:17:01 jim Exp $\n", "$Id: Acquisition.c,v 1.18 1998/03/24 16:21:17 jim Exp $\n",
OBJECT(NULL),PYTHON_API_VERSION); OBJECT(NULL),PYTHON_API_VERSION);
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
...@@ -899,6 +901,9 @@ initAcquisition() ...@@ -899,6 +901,9 @@ initAcquisition()
/***************************************************************************** /*****************************************************************************
$Log: Acquisition.c,v $ $Log: Acquisition.c,v $
Revision 1.18 1998/03/24 16:21:17 jim
Fixed bad return in wrapper special.
Revision 1.17 1998/03/24 16:17:01 jim Revision 1.17 1998/03/24 16:17:01 jim
Rearranged. Rearranged.
......
/* /*
$Id: Acquisition.c,v 1.17 1998/03/24 16:17:01 jim Exp $ $Id: Acquisition.c,v 1.18 1998/03/24 16:21:17 jim Exp $
Acquisition Wrappers -- Implementation of acquisition through wrappers Acquisition Wrappers -- Implementation of acquisition through wrappers
...@@ -256,6 +256,8 @@ Wrapper_special(Wrapper *self, char *name, PyObject *oname) ...@@ -256,6 +256,8 @@ Wrapper_special(Wrapper *self, char *name, PyObject *oname)
{ {
return Py_FindAttr(OBJECT(self),oname); return Py_FindAttr(OBJECT(self),oname);
} }
return NULL;
} }
static int static int
...@@ -857,7 +859,7 @@ void ...@@ -857,7 +859,7 @@ void
initAcquisition() initAcquisition()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.17 $"; char *rev="$Revision: 1.18 $";
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"
...@@ -876,7 +878,7 @@ initAcquisition() ...@@ -876,7 +878,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.17 1998/03/24 16:17:01 jim Exp $\n", "$Id: Acquisition.c,v 1.18 1998/03/24 16:21:17 jim Exp $\n",
OBJECT(NULL),PYTHON_API_VERSION); OBJECT(NULL),PYTHON_API_VERSION);
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
...@@ -899,6 +901,9 @@ initAcquisition() ...@@ -899,6 +901,9 @@ initAcquisition()
/***************************************************************************** /*****************************************************************************
$Log: Acquisition.c,v $ $Log: Acquisition.c,v $
Revision 1.18 1998/03/24 16:21:17 jim
Fixed bad return in wrapper special.
Revision 1.17 1998/03/24 16:17:01 jim Revision 1.17 1998/03/24 16:17:01 jim
Rearranged. Rearranged.
......
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