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
7f2a7ee9
Commit
7f2a7ee9
authored
Jan 24, 1997
by
chris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
fad8b8e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lib/Components/cPickle/cStringIO.c
lib/Components/cPickle/cStringIO.c
+6
-3
No files found.
lib/Components/cPickle/cStringIO.c
View file @
7f2a7ee9
/*
$Id: cStringIO.c,v 1.1
1 1997/01/23 20:45:01 jim
Exp $
$Id: cStringIO.c,v 1.1
2 1997/01/24 19:38:28 chris
Exp $
A simple fast partial StringIO replacement.
...
...
@@ -58,6 +58,9 @@
$Log: cStringIO.c,v $
Revision 1.12 1997/01/24 19:38:28 chris
*** empty log message ***
Revision 1.11 1997/01/23 20:45:01 jim
ANSIfied it.
Changed way C API was exported.
...
...
@@ -286,10 +289,10 @@ O_cwrite(PyObject *self, char *c, int l) {
int
newl
,
space_needed
;
newl
=
((
Oobject
*
)
self
)
->
pos
+
l
;
if
(
newl
>
((
Oobject
*
)
self
)
->
buf_size
)
if
(
newl
>
=
((
Oobject
*
)
self
)
->
buf_size
)
{
((
Oobject
*
)
self
)
->
buf_size
*=
2
;
if
(((
Oobject
*
)
self
)
->
buf_size
<
newl
)
((
Oobject
*
)
self
)
->
buf_size
=
newl
;
if
(((
Oobject
*
)
self
)
->
buf_size
<
=
newl
)
((
Oobject
*
)
self
)
->
buf_size
=
newl
+
1
;
UNLESS
(((
Oobject
*
)
self
)
->
buf
=
(
char
*
)
realloc
(((
Oobject
*
)
self
)
->
buf
,
((
Oobject
*
)
self
)
->
buf_size
*
sizeof
(
char
)))
...
...
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