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
70141f82
Commit
70141f82
authored
Jan 22, 1997
by
chris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
66c2ee0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lib/Components/cPickle/cPickle.c
lib/Components/cPickle/cPickle.c
+7
-7
No files found.
lib/Components/cPickle/cPickle.c
View file @
70141f82
/*
$Id: cPickle.c,v 1.1
0 1997/01/22 16:36:51 jim
Exp $
$Id: cPickle.c,v 1.1
1 1997/01/22 19:40:29 chris
Exp $
Copyright
...
...
@@ -193,7 +193,7 @@ write_cStringIO(ARG(Picklerobject *, self), ARG(char *, s), ARG(int, n))
ARGDECL
(
char
*
,
s
)
ARGDECL
(
int
,
n
)
{
if
(
(
*
PycStringIO_cwrite
)
((
PyObject
*
)
self
->
file
,
s
,
n
)
!=
n
)
if
(
PycStringIO
->
cwrite
((
PyObject
*
)
self
->
file
,
s
,
n
)
!=
n
)
{
return
-
1
;
}
...
...
@@ -349,7 +349,7 @@ read_cStringIO(ARG(Unpicklerobject *, self), ARG(int, n))
self
->
buf_size
=
n
;
}
if
(
(
*
PycStringIO_cread
)
((
PyObject
*
)
self
->
file
,
&
ptr
,
n
)
!=
n
)
if
(
PycStringIO
->
cread
((
PyObject
*
)
self
->
file
,
&
ptr
,
n
)
!=
n
)
{
PyErr_SetNone
(
PyExc_EOFError
);
return
-
1
;
...
...
@@ -367,7 +367,7 @@ readline_cStringIO(ARG(Unpicklerobject *, self))
int
n
,
size
;
char
*
ptr
;
if
((
n
=
(
*
PycStringIO_creadline
)
((
PyObject
*
)
self
->
file
,
&
ptr
))
<
0
)
if
((
n
=
PycStringIO
->
creadline
((
PyObject
*
)
self
->
file
,
&
ptr
))
<
0
)
{
return
-
1
;
}
...
...
@@ -3590,7 +3590,7 @@ dumps(ARG(PyObject *, self), ARG(PyObject *, args))
UNLESS
(
PyArg_ParseTuple
(
args
,
"O|i"
,
&
ob
,
&
bin
))
goto
finally
;
UNLESS
(
file
=
(
*
PycStringIO_NewOutput
)
(
128
))
UNLESS
(
file
=
PycStringIO
->
NewOutput
(
128
))
goto
finally
;
UNLESS
(
pickler
=
newPicklerobject
(
file
,
bin
))
...
...
@@ -3599,7 +3599,7 @@ dumps(ARG(PyObject *, self), ARG(PyObject *, args))
UNLESS
(
Pickler_dump
(
pickler
,
ob
))
goto
finally
;
res
=
(
*
PycStringIO_cgetvalue
)
(
file
);
res
=
PycStringIO
->
cgetvalue
(
file
);
finally:
Py_XDECREF
(
pickler
);
...
...
@@ -3643,7 +3643,7 @@ loads(ARG(PyObject *, self), ARG(PyObject *, args))
UNLESS
(
PyArg_Parse
(
args
,
"O"
,
&
args
))
goto
finally
;
UNLESS
(
file
=
(
*
PycStringIO_NewInput
)
(
args
))
UNLESS
(
file
=
PycStringIO
->
NewInput
(
args
))
goto
finally
;
UNLESS
(
unpickler
=
newUnpicklerobject
(
file
))
...
...
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