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
23a46811
Commit
23a46811
authored
Jun 09, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added logic to reduce the amount of simplification performed.
parent
b513f0ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
lib/Components/ExtensionClass/Acquisition.c
lib/Components/ExtensionClass/Acquisition.c
+4
-3
lib/Components/ExtensionClass/src/Acquisition.c
lib/Components/ExtensionClass/src/Acquisition.c
+4
-3
No files found.
lib/Components/ExtensionClass/Acquisition.c
View file @
23a46811
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
DAMAGE.
$Id: Acquisition.c,v 1.3
8 2000/05/08 22:00:40
jim Exp $
$Id: Acquisition.c,v 1.3
9 2000/06/09 17:16:39
jim Exp $
If you have questions regarding this software,
If you have questions regarding this software,
contact:
contact:
...
@@ -174,6 +174,7 @@ __of__(PyObject *inst, PyObject *parent)
...
@@ -174,6 +174,7 @@ __of__(PyObject *inst, PyObject *parent)
while
(
WRAPPER
(
r
)
->
obj
&&
isWrapper
(
WRAPPER
(
r
)
->
obj
)
while
(
WRAPPER
(
r
)
->
obj
&&
isWrapper
(
WRAPPER
(
r
)
->
obj
)
&&
(
WRAPPER
(
WRAPPER
(
r
)
->
obj
)
->
container
==
&&
(
WRAPPER
(
WRAPPER
(
r
)
->
obj
)
->
container
==
WRAPPER
(
WRAPPER
(
r
)
->
container
)
->
obj
)
WRAPPER
(
WRAPPER
(
r
)
->
container
)
->
obj
)
&&
!
isWrapper
(
WRAPPER
(
WRAPPER
(
r
)
->
obj
)
->
container
)
)
)
{
{
/* Simplify wrapper */
/* Simplify wrapper */
...
@@ -1383,7 +1384,7 @@ void
...
@@ -1383,7 +1384,7 @@ void
initAcquisition
()
initAcquisition
()
{
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.3
8
$"
;
char
*
rev
=
"$Revision: 1.3
9
$"
;
PURE_MIXIN_CLASS
(
Acquirer
,
PURE_MIXIN_CLASS
(
Acquirer
,
"Base class for objects that implicitly"
"Base class for objects that implicitly"
" acquire attributes from containers
\n
"
" acquire attributes from containers
\n
"
...
@@ -1402,7 +1403,7 @@ initAcquisition()
...
@@ -1402,7 +1403,7 @@ initAcquisition()
/* Create the module and add the functions */
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Acquisition"
,
methods
,
m
=
Py_InitModule4
(
"Acquisition"
,
methods
,
"Provide base classes for acquiring objects
\n\n
"
"Provide base classes for acquiring objects
\n\n
"
"$Id: Acquisition.c,v 1.3
8 2000/05/08 22:00:40
jim Exp $
\n
"
,
"$Id: Acquisition.c,v 1.3
9 2000/06/09 17:16:39
jim Exp $
\n
"
,
OBJECT
(
NULL
),
PYTHON_API_VERSION
);
OBJECT
(
NULL
),
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
d
=
PyModule_GetDict
(
m
);
...
...
lib/Components/ExtensionClass/src/Acquisition.c
View file @
23a46811
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
DAMAGE.
$Id: Acquisition.c,v 1.3
8 2000/05/08 22:00:40
jim Exp $
$Id: Acquisition.c,v 1.3
9 2000/06/09 17:16:39
jim Exp $
If you have questions regarding this software,
If you have questions regarding this software,
contact:
contact:
...
@@ -174,6 +174,7 @@ __of__(PyObject *inst, PyObject *parent)
...
@@ -174,6 +174,7 @@ __of__(PyObject *inst, PyObject *parent)
while
(
WRAPPER
(
r
)
->
obj
&&
isWrapper
(
WRAPPER
(
r
)
->
obj
)
while
(
WRAPPER
(
r
)
->
obj
&&
isWrapper
(
WRAPPER
(
r
)
->
obj
)
&&
(
WRAPPER
(
WRAPPER
(
r
)
->
obj
)
->
container
==
&&
(
WRAPPER
(
WRAPPER
(
r
)
->
obj
)
->
container
==
WRAPPER
(
WRAPPER
(
r
)
->
container
)
->
obj
)
WRAPPER
(
WRAPPER
(
r
)
->
container
)
->
obj
)
&&
!
isWrapper
(
WRAPPER
(
WRAPPER
(
r
)
->
obj
)
->
container
)
)
)
{
{
/* Simplify wrapper */
/* Simplify wrapper */
...
@@ -1383,7 +1384,7 @@ void
...
@@ -1383,7 +1384,7 @@ void
initAcquisition
()
initAcquisition
()
{
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.3
8
$"
;
char
*
rev
=
"$Revision: 1.3
9
$"
;
PURE_MIXIN_CLASS
(
Acquirer
,
PURE_MIXIN_CLASS
(
Acquirer
,
"Base class for objects that implicitly"
"Base class for objects that implicitly"
" acquire attributes from containers
\n
"
" acquire attributes from containers
\n
"
...
@@ -1402,7 +1403,7 @@ initAcquisition()
...
@@ -1402,7 +1403,7 @@ initAcquisition()
/* Create the module and add the functions */
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Acquisition"
,
methods
,
m
=
Py_InitModule4
(
"Acquisition"
,
methods
,
"Provide base classes for acquiring objects
\n\n
"
"Provide base classes for acquiring objects
\n\n
"
"$Id: Acquisition.c,v 1.3
8 2000/05/08 22:00:40
jim Exp $
\n
"
,
"$Id: Acquisition.c,v 1.3
9 2000/06/09 17:16:39
jim Exp $
\n
"
,
OBJECT
(
NULL
),
PYTHON_API_VERSION
);
OBJECT
(
NULL
),
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
d
=
PyModule_GetDict
(
m
);
...
...
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