Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
ZEO
Commits
f308bd8d
Commit
f308bd8d
authored
Jun 29, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in handling defaults.
parent
94297138
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
24 deletions
+48
-24
src/Persistence/cPickleCache.c
src/Persistence/cPickleCache.c
+16
-8
src/ZODB/cPickleCache.c
src/ZODB/cPickleCache.c
+16
-8
src/persistent/cPickleCache.c
src/persistent/cPickleCache.c
+16
-8
No files found.
src/Persistence/cPickleCache.c
View file @
f308bd8d
...
...
@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file.
****************************************************************************/
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.2
4 1999/06/29 18:27:05
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.2
5 1999/06/29 21:52:58
jim Exp $"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
...
...
@@ -407,12 +407,20 @@ cc_get(ccobject *self, PyObject *args)
UNLESS
(
PyArg_ParseTuple
(
args
,
"O|O"
,
&
key
,
&
d
))
return
NULL
;
UNLESS
(
r
=
PyDict_GetItem
(
self
->
data
,
key
))
r
=
d
;
UNLESS
(
d
)
UNLESS
(
r
=
PyDict_GetItem
(
self
->
data
,
key
))
{
if
(
d
)
{
PyErr_Clear
();
r
=
d
;
}
else
{
PyErr_SetObject
(
PyExc_KeyError
,
key
);
return
NULL
;
}
}
if
(
maybegc
(
self
,
r
)
<
0
)
return
NULL
;
Py_INCREF
(
r
);
...
...
@@ -644,7 +652,7 @@ void
initcPickleCache
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.2
4
$"
;
char
*
rev
=
"$Revision: 1.2
5
$"
;
Cctype
.
ob_type
=&
PyType_Type
;
...
...
src/ZODB/cPickleCache.c
View file @
f308bd8d
...
...
@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file.
****************************************************************************/
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.2
4 1999/06/29 18:27:05
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.2
5 1999/06/29 21:52:58
jim Exp $"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
...
...
@@ -407,12 +407,20 @@ cc_get(ccobject *self, PyObject *args)
UNLESS
(
PyArg_ParseTuple
(
args
,
"O|O"
,
&
key
,
&
d
))
return
NULL
;
UNLESS
(
r
=
PyDict_GetItem
(
self
->
data
,
key
))
r
=
d
;
UNLESS
(
d
)
UNLESS
(
r
=
PyDict_GetItem
(
self
->
data
,
key
))
{
if
(
d
)
{
PyErr_Clear
();
r
=
d
;
}
else
{
PyErr_SetObject
(
PyExc_KeyError
,
key
);
return
NULL
;
}
}
if
(
maybegc
(
self
,
r
)
<
0
)
return
NULL
;
Py_INCREF
(
r
);
...
...
@@ -644,7 +652,7 @@ void
initcPickleCache
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.2
4
$"
;
char
*
rev
=
"$Revision: 1.2
5
$"
;
Cctype
.
ob_type
=&
PyType_Type
;
...
...
src/persistent/cPickleCache.c
View file @
f308bd8d
...
...
@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file.
****************************************************************************/
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.2
4 1999/06/29 18:27:05
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.2
5 1999/06/29 21:52:58
jim Exp $"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
...
...
@@ -407,12 +407,20 @@ cc_get(ccobject *self, PyObject *args)
UNLESS
(
PyArg_ParseTuple
(
args
,
"O|O"
,
&
key
,
&
d
))
return
NULL
;
UNLESS
(
r
=
PyDict_GetItem
(
self
->
data
,
key
))
r
=
d
;
UNLESS
(
d
)
UNLESS
(
r
=
PyDict_GetItem
(
self
->
data
,
key
))
{
if
(
d
)
{
PyErr_Clear
();
r
=
d
;
}
else
{
PyErr_SetObject
(
PyExc_KeyError
,
key
);
return
NULL
;
}
}
if
(
maybegc
(
self
,
r
)
<
0
)
return
NULL
;
Py_INCREF
(
r
);
...
...
@@ -644,7 +652,7 @@ void
initcPickleCache
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.2
4
$"
;
char
*
rev
=
"$Revision: 1.2
5
$"
;
Cctype
.
ob_type
=&
PyType_Type
;
...
...
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