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
12a06e89
Commit
12a06e89
authored
Oct 07, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use K&R function prototypes.
parent
61693903
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
Include/cStringIO.h
Include/cStringIO.h
+12
-7
No files found.
Include/cStringIO.h
View file @
12a06e89
...
...
@@ -70,6 +70,9 @@
This would typically be done in your init function.
$Log$
Revision 2.6 1997/10/07 14:44:48 guido
Use K&R function prototypes.
Revision 2.5 1997/08/13 03:14:08 guido
cPickle release 0.3 from Jim Fulton
...
...
@@ -91,22 +94,22 @@
static
struct
PycStringIO_CAPI
{
/* Read a string. If the last argument is -1, the remainder will be read. */
int
(
*
cread
)
(
PyObject
*
,
char
**
,
int
);
int
(
*
cread
)
Py_FPROTO
((
PyObject
*
,
char
**
,
int
)
);
/* Read a line */
int
(
*
creadline
)
(
PyObject
*
,
char
**
);
int
(
*
creadline
)
Py_FPROTO
((
PyObject
*
,
char
**
)
);
/* Write a string */
int
(
*
cwrite
)
(
PyObject
*
,
char
*
,
int
);
int
(
*
cwrite
)
Py_FPROTO
((
PyObject
*
,
char
*
,
int
)
);
/* Get the cStringIO object as a Python string */
PyObject
*
(
*
cgetvalue
)
(
PyObject
*
);
PyObject
*
(
*
cgetvalue
)
Py_FPROTO
((
PyObject
*
)
);
/* Create a new output object */
PyObject
*
(
*
NewOutput
)
(
int
);
PyObject
*
(
*
NewOutput
)
Py_FPROTO
((
int
)
);
/* Create an input object from a Python string */
PyObject
*
(
*
NewInput
)
(
PyObject
*
);
PyObject
*
(
*
NewInput
)
Py_FPROTO
((
PyObject
*
)
);
/* The Python types for cStringIO input and output objects.
Note that you can do input on an output object.
...
...
@@ -122,7 +125,9 @@ static struct PycStringIO_CAPI {
((O)->ob_type==PycStringIO->OutputType)
static
void
*
xxxPyCObject_Import
(
char
*
module_name
,
char
*
name
)
xxxPyCObject_Import
(
module_name
,
name
)
char
*
module_name
;
char
*
name
;
{
PyObject
*
m
,
*
c
;
void
*
r
=
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