Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d81a1baa
Commit
d81a1baa
authored
Jan 06, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Jim's latest version
parent
d4ff1b90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
Include/cStringIO.h
Include/cStringIO.h
+12
-8
No files found.
Include/cStringIO.h
View file @
d81a1baa
...
...
@@ -70,12 +70,14 @@
This would typically be done in your init function.
$Log$
Revision 2.
1 1996/12/05 23:30:48
guido
Jim
F's brainchild
Revision 2.
2 1997/01/06 22:50:12
guido
Jim
's latest version
Revision 1.1 1997/01/02 15:18:36 chris
initial version
*/
*/
/* Basic fuctions to manipulate cStringIO objects from C */
...
...
@@ -89,13 +91,13 @@ static int(*PycStringIO_creadline)(PyObject *, char **)=NULL;
static
int
(
*
PycStringIO_cwrite
)(
PyObject
*
,
char
*
,
int
)
=
NULL
;
/* Get the cStringIO object as a Python string */
static
PyObject
(
*
PycStringIO_cgetvalue
)(
PyObject
*
)
=
NULL
;
static
PyObject
*
(
*
PycStringIO_cgetvalue
)(
PyObject
*
)
=
NULL
;
/* Create a new output object */
static
PyObject
(
*
PycStringIO_NewOutput
)(
void
)
=
NULL
;
static
PyObject
*
(
*
PycStringIO_NewOutput
)(
int
)
=
NULL
;
/* Create an input object from a Python string */
static
PyObject
(
*
PycStringIO_NewInput
)(
PyObject
*
)
=
NULL
;
static
PyObject
*
(
*
PycStringIO_NewInput
)(
PyObject
*
)
=
NULL
;
/* The Python types for cStringIO input and output objects.
Note that you can do input on an output object.
...
...
@@ -103,8 +105,10 @@ static PyObject(*PycStringIO_NewInput)(PyObject *)=NULL;
static
PyObject
*
PycStringIO_InputType
=
NULL
,
*
PycStringIO_OutputType
=
NULL
;
/* These can be used to test if you have one */
#define PycStringIO_InputCheck(O) ((O)->ob_type==PycStringIO_InputType)
#define PycStringIO_OutputCheck(O) ((O)->ob_type==PycStringIO_OutputType)
#define PycStringIO_InputCheck(O) \
((O)->ob_type==(PyTypeObject*)PycStringIO_InputType)
#define PycStringIO_OutputCheck(O) \
((O)->ob_type==(PyTypeObject*)PycStringIO_OutputType)
/* The following is used to implement PycString_IMPORT: */
static
PyObject
*
PycStringIO_Module
=
NULL
,
*
PycStringIO_CObject
=
NULL
;
...
...
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