diff options
author | Guido van Rossum <guido@python.org> | 1997-04-09 18:04:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-04-09 18:04:08 (GMT) |
commit | 45c3aaba561acd446e8e65fda45954192452af94 (patch) | |
tree | 9479570c4ef052dfb64ef120af1cd452a7266e4c /Include | |
parent | d385d59c09cd00301d8c764342f3c97c9b0c76a4 (diff) | |
download | cpython-45c3aaba561acd446e8e65fda45954192452af94.zip cpython-45c3aaba561acd446e8e65fda45954192452af94.tar.gz cpython-45c3aaba561acd446e8e65fda45954192452af94.tar.bz2 |
Got rid of the static decl of PyCObject_Import, which was a 1.4
compatibility hack.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cStringIO.h | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/Include/cStringIO.h b/Include/cStringIO.h index 5fd9941..632177e 100644 --- a/Include/cStringIO.h +++ b/Include/cStringIO.h @@ -70,6 +70,10 @@ This would typically be done in your init function. $Log$ + Revision 2.4 1997/04/09 18:04:08 guido + Got rid of the static decl of PyCObject_Import, which was a 1.4 + compatibility hack. + Revision 2.3 1997/04/09 17:34:28 guido Changed the way the C API was exported. Jim Fulton. @@ -117,25 +121,6 @@ static struct PycStringIO_CAPI { #define PycStringIO_OutputCheck(O) \ ((O)->ob_type==PycStringIO->OutputType) -static void * -PyCObject_Import(char *module_name, char *name) -{ - PyObject *m, *c; - void *r=NULL; - - if(m=PyImport_ImportModule(module_name)) - { - if(c=PyObject_GetAttrString(m,name)) - { - r=PyCObject_AsVoidPtr(c); - Py_DECREF(c); - } - Py_DECREF(m); - } - - return r; -} - #define PycString_IMPORT \ PycStringIO=PyCObject_Import("cStringIO", "cStringIO_CAPI") |