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
3e8e14e1
Commit
3e8e14e1
authored
Jul 02, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got rid of unused macros and ErrorObject.
parent
e2f58d5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
28 deletions
+10
-28
lib/Components/ExtensionClass/Missing.c
lib/Components/ExtensionClass/Missing.c
+5
-14
lib/Components/ExtensionClass/src/Missing.c
lib/Components/ExtensionClass/src/Missing.c
+5
-14
No files found.
lib/Components/ExtensionClass/Missing.c
View file @
3e8e14e1
...
...
@@ -53,20 +53,11 @@
static
char
Missing_module_documentation
[]
=
""
"
\n
$Id: Missing.c,v 1.
1 1997/07/01 21:36:34
jim Exp $"
"
\n
$Id: Missing.c,v 1.
2 1997/07/02 20:19:37
jim Exp $"
;
#include "ExtensionClass.h"
static
PyObject
*
ErrorObject
;
/* ----------------------------------------------------- */
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)
/* Declarations for objects of type Missing */
typedef
struct
{
...
...
@@ -246,7 +237,7 @@ void
initMissing
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
1
$"
;
char
*
rev
=
"$Revision: 1.
2
$"
;
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Missing"
,
Module_Level__methods
,
...
...
@@ -258,9 +249,6 @@ initMissing()
PyExtensionClass_Export
(
d
,
"Missing"
,
MissingType
);
ErrorObject
=
PyString_FromString
(
"Missing.error"
);
PyDict_SetItemString
(
d
,
"error"
,
ErrorObject
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
...
...
@@ -278,6 +266,9 @@ initMissing()
Revision Log:
$Log: Missing.c,v $
Revision 1.2 1997/07/02 20:19:37 jim
Got rid of unused macros and ErrorObject.
Revision 1.1 1997/07/01 21:36:34 jim
*** empty log message ***
...
...
lib/Components/ExtensionClass/src/Missing.c
View file @
3e8e14e1
...
...
@@ -53,20 +53,11 @@
static
char
Missing_module_documentation
[]
=
""
"
\n
$Id: Missing.c,v 1.
1 1997/07/01 21:36:34
jim Exp $"
"
\n
$Id: Missing.c,v 1.
2 1997/07/02 20:19:37
jim Exp $"
;
#include "ExtensionClass.h"
static
PyObject
*
ErrorObject
;
/* ----------------------------------------------------- */
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)
/* Declarations for objects of type Missing */
typedef
struct
{
...
...
@@ -246,7 +237,7 @@ void
initMissing
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
1
$"
;
char
*
rev
=
"$Revision: 1.
2
$"
;
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Missing"
,
Module_Level__methods
,
...
...
@@ -258,9 +249,6 @@ initMissing()
PyExtensionClass_Export
(
d
,
"Missing"
,
MissingType
);
ErrorObject
=
PyString_FromString
(
"Missing.error"
);
PyDict_SetItemString
(
d
,
"error"
,
ErrorObject
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
...
...
@@ -278,6 +266,9 @@ initMissing()
Revision Log:
$Log: Missing.c,v $
Revision 1.2 1997/07/02 20:19:37 jim
Got rid of unused macros and ErrorObject.
Revision 1.1 1997/07/01 21:36:34 jim
*** empty log message ***
...
...
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