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
e449677f
Commit
e449677f
authored
Jun 13, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes including doing an XDECREF in a place where I used to do it.
parent
ad9e57bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
lib/Components/ExtensionClass/ExtensionClass.c
lib/Components/ExtensionClass/ExtensionClass.c
+7
-7
lib/Components/ExtensionClass/src/ExtensionClass.c
lib/Components/ExtensionClass/src/ExtensionClass.c
+7
-7
No files found.
lib/Components/ExtensionClass/ExtensionClass.c
View file @
e449677f
...
...
@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
$Id: ExtensionClass.c,v 1.3
5 1999/06/10 20:04:40
jim Exp $
$Id: ExtensionClass.c,v 1.3
6 1999/06/13 12:41:34
jim Exp $
If you have questions regarding this software,
contact:
...
...
@@ -54,7 +54,7 @@ static char ExtensionClass_module_documentation[] =
" - They provide access to unbound methods,
\n
"
" - They can be called to create instances.
\n
"
"
\n
"
"$Id: ExtensionClass.c,v 1.3
5 1999/06/10 20:04:40
jim Exp $
\n
"
"$Id: ExtensionClass.c,v 1.3
6 1999/06/13 12:41:34
jim Exp $
\n
"
;
#include <stdio.h>
...
...
@@ -1583,7 +1583,7 @@ CCL_dealloc(PyExtensionClass *self)
Py_DECREF
(
self
->
bases
);
}
if
(((
PyExtensionClass
*
)
self
->
ob_type
)
!=
self
)
Py_DECREF
(
self
->
ob_type
);
if
(((
PyExtensionClass
*
)
self
->
ob_type
)
!=
self
)
Py_
X
DECREF
(
self
->
ob_type
);
PyMem_DEL
(
self
);
}
...
...
@@ -2012,7 +2012,7 @@ err:
static
PyObject
*
CCL_repr
(
PyExtensionClass
*
self
)
{
char
p
[
64
],
*
pp
;
char
p
[
128
],
*
pp
;
PyObject
*
m
;
if
((
m
=
PyObject_GetAttr
(
OBJECT
(
self
),
py__module__
)))
...
...
@@ -2280,7 +2280,7 @@ subclass_hash(PyObject *self)
static
PyObject
*
default_subclass_repr
(
PyObject
*
self
)
{
char
p
[
64
],
*
pp
;
char
p
[
128
],
*
pp
;
PyErr_Clear
();
sprintf
(
p
,
"%p"
,
self
);
...
...
@@ -2990,7 +2990,7 @@ subclass_dealloc(PyObject *self)
*/
base_dealloced
=
dealloc_base
(
self
,(
PyExtensionClass
*
)
self
->
ob_type
);
/* We only */
/* We only
deallocate ourselves if a base class didn't
*/
UNLESS
(
base_dealloced
)
{
Py_DECREF
(
self
->
ob_type
);
...
...
@@ -3416,7 +3416,7 @@ void
initExtensionClass
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.3
5
$"
;
char
*
rev
=
"$Revision: 1.3
6
$"
;
PURE_MIXIN_CLASS
(
Base
,
"Minimalbase class for Extension Classes"
,
NULL
);
PMethodType
.
ob_type
=&
PyType_Type
;
...
...
lib/Components/ExtensionClass/src/ExtensionClass.c
View file @
e449677f
...
...
@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
$Id: ExtensionClass.c,v 1.3
5 1999/06/10 20:04:40
jim Exp $
$Id: ExtensionClass.c,v 1.3
6 1999/06/13 12:41:34
jim Exp $
If you have questions regarding this software,
contact:
...
...
@@ -54,7 +54,7 @@ static char ExtensionClass_module_documentation[] =
" - They provide access to unbound methods,
\n
"
" - They can be called to create instances.
\n
"
"
\n
"
"$Id: ExtensionClass.c,v 1.3
5 1999/06/10 20:04:40
jim Exp $
\n
"
"$Id: ExtensionClass.c,v 1.3
6 1999/06/13 12:41:34
jim Exp $
\n
"
;
#include <stdio.h>
...
...
@@ -1583,7 +1583,7 @@ CCL_dealloc(PyExtensionClass *self)
Py_DECREF
(
self
->
bases
);
}
if
(((
PyExtensionClass
*
)
self
->
ob_type
)
!=
self
)
Py_DECREF
(
self
->
ob_type
);
if
(((
PyExtensionClass
*
)
self
->
ob_type
)
!=
self
)
Py_
X
DECREF
(
self
->
ob_type
);
PyMem_DEL
(
self
);
}
...
...
@@ -2012,7 +2012,7 @@ err:
static
PyObject
*
CCL_repr
(
PyExtensionClass
*
self
)
{
char
p
[
64
],
*
pp
;
char
p
[
128
],
*
pp
;
PyObject
*
m
;
if
((
m
=
PyObject_GetAttr
(
OBJECT
(
self
),
py__module__
)))
...
...
@@ -2280,7 +2280,7 @@ subclass_hash(PyObject *self)
static
PyObject
*
default_subclass_repr
(
PyObject
*
self
)
{
char
p
[
64
],
*
pp
;
char
p
[
128
],
*
pp
;
PyErr_Clear
();
sprintf
(
p
,
"%p"
,
self
);
...
...
@@ -2990,7 +2990,7 @@ subclass_dealloc(PyObject *self)
*/
base_dealloced
=
dealloc_base
(
self
,(
PyExtensionClass
*
)
self
->
ob_type
);
/* We only */
/* We only
deallocate ourselves if a base class didn't
*/
UNLESS
(
base_dealloced
)
{
Py_DECREF
(
self
->
ob_type
);
...
...
@@ -3416,7 +3416,7 @@ void
initExtensionClass
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.3
5
$"
;
char
*
rev
=
"$Revision: 1.3
6
$"
;
PURE_MIXIN_CLASS
(
Base
,
"Minimalbase class for Extension Classes"
,
NULL
);
PMethodType
.
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