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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
d9c39a6c
Commit
d9c39a6c
authored
May 17, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added updated copt with wrapper checking to the trunk
parent
38c8e2f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
src/ZODB/coptimizations.c
src/ZODB/coptimizations.c
+13
-1
No files found.
src/ZODB/coptimizations.c
View file @
d9c39a6c
...
@@ -163,6 +163,18 @@ persistent_id_call(persistent_id *self, PyObject *args, PyObject *kwargs)
...
@@ -163,6 +163,18 @@ persistent_id_call(persistent_id *self, PyObject *args, PyObject *kwargs)
&
PERSISTENT_TYPE_FLAG
)
&
PERSISTENT_TYPE_FLAG
)
)
)
goto
not_persistent
;
goto
not_persistent
;
if
(
OBJECT
(
object
->
ob_type
)
!=
klass
)
{
/* Wrapped object, whine! */
/*
printf("%s != %s\n",
object->ob_type->tp_name,
(((PyExtensionClass*)klass)->tp_name));
*/
PyErr_SetString
(
InvalidObjectReference
,
"Attempt to store a wrapped persistent object"
);
return
NULL
;
}
}
}
else
else
goto
not_persistent
;
goto
not_persistent
;
...
@@ -307,7 +319,7 @@ void
...
@@ -307,7 +319,7 @@ void
initcoptimizations
()
initcoptimizations
()
{
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
6
$"
;
char
*
rev
=
"$Revision: 1.
7
$"
;
#define make_string(S) if (! (py_ ## S=PyString_FromString(#S))) return
#define make_string(S) if (! (py_ ## S=PyString_FromString(#S))) return
make_string
(
_p_oid
);
make_string
(
_p_oid
);
...
...
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