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
99259f9c
Commit
99259f9c
authored
May 23, 2001
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silenced gcc warnings.
- Removed ASSIGN macros, never used. - Changed empty parameter list to "void".
parent
b7f4dc58
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
lib/Components/ExtensionClass/src/ComputedAttribute.c
lib/Components/ExtensionClass/src/ComputedAttribute.c
+4
-13
No files found.
lib/Components/ExtensionClass/src/ComputedAttribute.c
View file @
99259f9c
...
...
@@ -33,7 +33,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
$Id: ComputedAttribute.c,v 1.
4 2001/01/23 14:37:20 jim
Exp $
$Id: ComputedAttribute.c,v 1.
5 2001/05/23 18:28:33 shane
Exp $
If you have questions regarding this software,
contact:
...
...
@@ -46,16 +46,7 @@
*/
#include "ExtensionClass.h"
static
void
PyVar_Assign
(
PyObject
**
v
,
PyObject
*
e
)
{
Py_XDECREF
(
*
v
);
*
v
=
e
;
}
#define ASSIGN(V,E) PyVar_Assign(&(V),(E))
#define UNLESS(E) if(!(E))
#define UNLESS_ASSIGN(V,E) ASSIGN(V,E); UNLESS(V)
#define OBJECT(O) ((PyObject*)(O))
typedef
struct
{
...
...
@@ -142,10 +133,10 @@ static struct PyMethodDef methods[] = {
};
void
initComputedAttribute
()
initComputedAttribute
(
void
)
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
4
$"
;
char
*
rev
=
"$Revision: 1.
5
$"
;
UNLESS
(
ExtensionClassImported
)
return
;
...
...
@@ -155,7 +146,7 @@ initComputedAttribute()
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"ComputedAttribute"
,
methods
,
"Provide Computed Attributes
\n\n
"
"$Id: ComputedAttribute.c,v 1.
4 2001/01/23 14:37:20 jim
Exp $
\n
"
,
"$Id: ComputedAttribute.c,v 1.
5 2001/05/23 18:28:33 shane
Exp $
\n
"
,
OBJECT
(
NULL
),
PYTHON_API_VERSION
);
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