Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
fd8c88c8
Commit
fd8c88c8
authored
Jun 13, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- changed to avoid warning of multiple declarations in 1.5 and
our 1.4.
parent
0b716ef3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
lib/Components/cPickle/cStringIO.h
lib/Components/cPickle/cStringIO.h
+9
-5
No files found.
lib/Components/cPickle/cStringIO.h
View file @
fd8c88c8
...
...
@@ -2,7 +2,7 @@
#define CSTRINGIO_INCLUDED
/*
$Id: cStringIO.h,v 1.
2 1997/01/27 14:13:05
jim Exp $
$Id: cStringIO.h,v 1.
3 1997/06/13 19:44:02
jim Exp $
cStringIO C API
...
...
@@ -70,6 +70,10 @@
This would typically be done in your init function.
$Log: cStringIO.h,v $
Revision 1.3 1997/06/13 19:44:02 jim
- changed to avoid warning of multiple declarations in 1.5 and
our 1.4.
Revision 1.2 1997/01/27 14:13:05 jim
Changed the way the C API was exported.
...
...
@@ -115,14 +119,14 @@ static struct PycStringIO_CAPI {
((O)->ob_type==PycStringIO->OutputType)
static
void
*
PyCObject_Import
(
char
*
module_name
,
char
*
name
)
xxx
PyCObject_Import
(
char
*
module_name
,
char
*
name
)
{
PyObject
*
m
,
*
c
;
void
*
r
=
NULL
;
if
(
m
=
PyImport_ImportModule
(
module_name
))
if
(
(
m
=
PyImport_ImportModule
(
module_name
)
))
{
if
(
c
=
PyObject_GetAttrString
(
m
,
name
))
if
(
(
c
=
PyObject_GetAttrString
(
m
,
name
)
))
{
r
=
PyCObject_AsVoidPtr
(
c
);
Py_DECREF
(
c
);
...
...
@@ -134,6 +138,6 @@ PyCObject_Import(char *module_name, char *name)
}
#define PycString_IMPORT \
PycStringIO=PyCObject_Import("cStringIO", "cStringIO_CAPI")
PycStringIO=
xxx
PyCObject_Import("cStringIO", "cStringIO_CAPI")
#endif
/* CSTRINGIO_INCLUDED */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment