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
09f0b213
Commit
09f0b213
authored
Feb 17, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
5d1654e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
62 deletions
+55
-62
lib/Components/cPickle/cStringIO.c
lib/Components/cPickle/cStringIO.c
+55
-62
No files found.
lib/Components/cPickle/cStringIO.c
View file @
09f0b213
/*
$Id: cStringIO.c,v 1.1
5 1997/02/07 17:11:55
jim Exp $
$Id: cStringIO.c,v 1.1
6 1997/02/17 22:17:43
jim Exp $
A simple fast partial StringIO replacement.
...
...
@@ -58,9 +58,8 @@
$Log: cStringIO.c,v $
Revision 1.15 1997/02/07 17:11:55 jim
Added code to ease compilation on Windoze and removed some extraneous
variable declarations.
Revision 1.16 1997/02/17 22:17:43 jim
*** empty log message ***
Revision 1.14 1997/01/24 19:56:24 chris
undid last change
...
...
@@ -155,7 +154,7 @@ typedef struct {
int
pos
,
string_size
,
buf_size
,
closed
;
}
Oobject
;
static
PyTypeObject
Otype
;
static
forward
PyTypeObject
Otype
;
/* ---------------------------------------------------------------- */
...
...
@@ -168,7 +167,7 @@ typedef struct {
PyObject
*
pbuf
;
}
Iobject
;
static
PyTypeObject
Itype
;
static
forward
PyTypeObject
Itype
;
/* ---------------------------------------------------------------- */
...
...
@@ -479,9 +478,8 @@ static char Otype__doc__[] =
"Simple type for output to strings."
;
static
PyTypeObject
Otype_value
()
{
PyTypeObject
Otype
=
{
PyObject_HEAD_INIT
(
&
PyType_Type
)
static
PyTypeObject
Otype
=
{
PyObject_HEAD_INIT
(
NULL
)
0
,
/*ob_size*/
"StringO"
,
/*tp_name*/
sizeof
(
Oobject
),
/*tp_basicsize*/
...
...
@@ -503,9 +501,7 @@ static PyTypeObject Otype_value() {
/* Space for future expansion */
0L
,
0L
,
0L
,
0L
,
Otype__doc__
/* Documentation string */
};
return
Otype
;
}
};
/* End of code for StringO objects */
/* -------------------------------------------------------- */
...
...
@@ -572,9 +568,8 @@ static char Itype__doc__[] =
"Simple type for treating strings as input file streams"
;
static
PyTypeObject
Itype_value
()
{
PyTypeObject
Itype
=
{
PyObject_HEAD_INIT
(
&
PyType_Type
)
static
PyTypeObject
Itype
=
{
PyObject_HEAD_INIT
(
NULL
)
0
,
/*ob_size*/
"StringI"
,
/*tp_name*/
sizeof
(
Iobject
),
/*tp_basicsize*/
...
...
@@ -596,9 +591,7 @@ static PyTypeObject Itype_value() {
/* Space for future expansion */
0L
,
0L
,
0L
,
0L
,
Itype__doc__
/* Documentation string */
};
return
Itype
;
}
};
/* End of code for StringI objects */
/* -------------------------------------------------------- */
...
...
@@ -652,8 +645,8 @@ initcStringIO() {
d
=
PyModule_GetDict
(
m
);
/* Export C API */
Itype
=
Itype_value
()
;
Otype
=
Otype_value
()
;
Itype
.
ob_type
=&
PyType_Type
;
Otype
.
ob_type
=&
PyType_Type
;
PyDict_SetItemString
(
d
,
"cStringIO_CAPI"
,
PyCObject_FromVoidPtr
(
&
CAPI
,
NULL
));
/* Export Types */
...
...
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