Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
180fae82
Commit
180fae82
authored
Jan 25, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of __version__. Add $ to doc string where needed.
parent
eb996b89
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
56 deletions
+18
-56
trunk/src/Persistence/cPersistence.c
trunk/src/Persistence/cPersistence.c
+1
-5
trunk/src/Persistence/cPickleCache.c
trunk/src/Persistence/cPickleCache.c
+2
-7
trunk/src/ZODB/TimeStamp.c
trunk/src/ZODB/TimeStamp.c
+1
-6
trunk/src/ZODB/cPersistence.c
trunk/src/ZODB/cPersistence.c
+1
-5
trunk/src/ZODB/cPickleCache.c
trunk/src/ZODB/cPickleCache.c
+2
-7
trunk/src/ZODB/coptimizations.c
trunk/src/ZODB/coptimizations.c
+7
-7
trunk/src/ZODB/winlock.c
trunk/src/ZODB/winlock.c
+1
-7
trunk/src/persistent/cPersistence.c
trunk/src/persistent/cPersistence.c
+1
-5
trunk/src/persistent/cPickleCache.c
trunk/src/persistent/cPickleCache.c
+2
-7
No files found.
trunk/src/Persistence/cPersistence.c
View file @
180fae82
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
static
char
cPersistence_doc_string
[]
=
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\n
"
"Defines Persistent mixin class for persistent objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPersistence.c,v 1.4
7 2001/11/28 15:51:20 matt
Exp $
\n
"
;
"$Id: cPersistence.c,v 1.4
8 2002/01/25 14:51:55 gvanrossum
Exp $
\n
"
;
#include <string.h>
#include <string.h>
#include "cPersistence.h"
#include "cPersistence.h"
...
@@ -688,7 +688,6 @@ void
...
@@ -688,7 +688,6 @@ void
initcPersistence
(
void
)
initcPersistence
(
void
)
{
{
PyObject
*
m
,
*
d
,
*
s
;
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.47 $"
;
s
=
PyString_FromString
(
"TimeStamp"
);
s
=
PyString_FromString
(
"TimeStamp"
);
if
(
s
==
NULL
)
if
(
s
==
NULL
)
...
@@ -709,9 +708,6 @@ initcPersistence(void)
...
@@ -709,9 +708,6 @@ initcPersistence(void)
d
=
PyModule_GetDict
(
m
);
d
=
PyModule_GetDict
(
m
);
s
=
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
);
PyDict_SetItemString
(
d
,
"__version__"
,
s
);
Py_XDECREF
(
s
);
PyExtensionClass_Export
(
d
,
"Persistent"
,
Pertype
);
PyExtensionClass_Export
(
d
,
"Persistent"
,
Pertype
);
PyExtensionClass_Export
(
d
,
"Overridable"
,
Overridable
);
PyExtensionClass_Export
(
d
,
"Overridable"
,
Overridable
);
...
...
trunk/src/Persistence/cPickleCache.c
View file @
180fae82
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
static
char
cPickleCache_doc_string
[]
=
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPickleCache.c,v 1.3
7 2001/11/28 15:51:20 matt
Exp $
\n
"
;
"$Id: cPickleCache.c,v 1.3
8 2002/01/25 14:51:55 gvanrossum
Exp $
\n
"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
#define UNLESS(E) if(!(E))
...
@@ -654,8 +654,7 @@ static struct PyMethodDef cCM_methods[] = {
...
@@ -654,8 +654,7 @@ static struct PyMethodDef cCM_methods[] = {
void
void
initcPickleCache
(
void
)
initcPickleCache
(
void
)
{
{
PyObject
*
m
,
*
d
,
*
s
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.37 $"
;
Cctype
.
ob_type
=&
PyType_Type
;
Cctype
.
ob_type
=&
PyType_Type
;
...
@@ -670,10 +669,6 @@ initcPickleCache(void)
...
@@ -670,10 +669,6 @@ initcPickleCache(void)
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_changed
=
PyString_FromString
(
"_p_changed"
);
py__p_changed
=
PyString_FromString
(
"_p_changed"
);
s
=
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
);
PyDict_SetItemString
(
d
,
"__version__"
,
s
);
Py_XDECREF
(
s
);
/* Check for errors */
/* Check for errors */
if
(
PyErr_Occurred
())
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module cPickleCache"
);
Py_FatalError
(
"can't initialize module cPickleCache"
);
...
...
trunk/src/ZODB/TimeStamp.c
View file @
180fae82
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
static
char
TimeStamp_module_documentation
[]
=
static
char
TimeStamp_module_documentation
[]
=
"Defines 64-bit TimeStamp objects used as ZODB serial numbers.
\n
"
"Defines 64-bit TimeStamp objects used as ZODB serial numbers.
\n
"
"
\n
"
"
\n
"
"
\n
$Id: TimeStamp.c,v 1.1
2 2002/01/24 20:19:06
gvanrossum Exp $
\n
"
;
"
\n
$Id: TimeStamp.c,v 1.1
3 2002/01/25 14:51:55
gvanrossum Exp $
\n
"
;
#include <stdlib.h>
#include <stdlib.h>
#include <time.h>
#include <time.h>
...
@@ -412,7 +412,6 @@ void
...
@@ -412,7 +412,6 @@ void
initTimeStamp
(
void
)
initTimeStamp
(
void
)
{
{
PyObject
*
m
,
*
d
,
*
s
;
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.12 $"
;
if
(
TimeStamp_init_gmoff
()
<
0
)
return
;
if
(
TimeStamp_init_gmoff
()
<
0
)
return
;
if
(
!
ExtensionClassImported
)
return
;
if
(
!
ExtensionClassImported
)
return
;
...
@@ -437,10 +436,6 @@ initTimeStamp(void)
...
@@ -437,10 +436,6 @@ initTimeStamp(void)
PyDict_SetItemString
(
d
,
"error"
,
s
);
PyDict_SetItemString
(
d
,
"error"
,
s
);
Py_XDECREF
(
s
);
Py_XDECREF
(
s
);
s
=
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
);
PyDict_SetItemString
(
d
,
"__version__"
,
s
);
Py_XDECREF
(
s
);
/* Check for errors */
/* Check for errors */
if
(
PyErr_Occurred
())
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module TimeStamp"
);
Py_FatalError
(
"can't initialize module TimeStamp"
);
...
...
trunk/src/ZODB/cPersistence.c
View file @
180fae82
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
static
char
cPersistence_doc_string
[]
=
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\n
"
"Defines Persistent mixin class for persistent objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPersistence.c,v 1.4
7 2001/11/28 15:51:20 matt
Exp $
\n
"
;
"$Id: cPersistence.c,v 1.4
8 2002/01/25 14:51:55 gvanrossum
Exp $
\n
"
;
#include <string.h>
#include <string.h>
#include "cPersistence.h"
#include "cPersistence.h"
...
@@ -688,7 +688,6 @@ void
...
@@ -688,7 +688,6 @@ void
initcPersistence
(
void
)
initcPersistence
(
void
)
{
{
PyObject
*
m
,
*
d
,
*
s
;
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.47 $"
;
s
=
PyString_FromString
(
"TimeStamp"
);
s
=
PyString_FromString
(
"TimeStamp"
);
if
(
s
==
NULL
)
if
(
s
==
NULL
)
...
@@ -709,9 +708,6 @@ initcPersistence(void)
...
@@ -709,9 +708,6 @@ initcPersistence(void)
d
=
PyModule_GetDict
(
m
);
d
=
PyModule_GetDict
(
m
);
s
=
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
);
PyDict_SetItemString
(
d
,
"__version__"
,
s
);
Py_XDECREF
(
s
);
PyExtensionClass_Export
(
d
,
"Persistent"
,
Pertype
);
PyExtensionClass_Export
(
d
,
"Persistent"
,
Pertype
);
PyExtensionClass_Export
(
d
,
"Overridable"
,
Overridable
);
PyExtensionClass_Export
(
d
,
"Overridable"
,
Overridable
);
...
...
trunk/src/ZODB/cPickleCache.c
View file @
180fae82
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
static
char
cPickleCache_doc_string
[]
=
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPickleCache.c,v 1.3
7 2001/11/28 15:51:20 matt
Exp $
\n
"
;
"$Id: cPickleCache.c,v 1.3
8 2002/01/25 14:51:55 gvanrossum
Exp $
\n
"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
#define UNLESS(E) if(!(E))
...
@@ -654,8 +654,7 @@ static struct PyMethodDef cCM_methods[] = {
...
@@ -654,8 +654,7 @@ static struct PyMethodDef cCM_methods[] = {
void
void
initcPickleCache
(
void
)
initcPickleCache
(
void
)
{
{
PyObject
*
m
,
*
d
,
*
s
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.37 $"
;
Cctype
.
ob_type
=&
PyType_Type
;
Cctype
.
ob_type
=&
PyType_Type
;
...
@@ -670,10 +669,6 @@ initcPickleCache(void)
...
@@ -670,10 +669,6 @@ initcPickleCache(void)
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_changed
=
PyString_FromString
(
"_p_changed"
);
py__p_changed
=
PyString_FromString
(
"_p_changed"
);
s
=
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
);
PyDict_SetItemString
(
d
,
"__version__"
,
s
);
Py_XDECREF
(
s
);
/* Check for errors */
/* Check for errors */
if
(
PyErr_Occurred
())
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module cPickleCache"
);
Py_FatalError
(
"can't initialize module cPickleCache"
);
...
...
trunk/src/ZODB/coptimizations.c
View file @
180fae82
...
@@ -10,6 +10,11 @@
...
@@ -10,6 +10,11 @@
FOR A PARTICULAR PURPOSE
FOR A PARTICULAR PURPOSE
****************************************************************************/
****************************************************************************/
static
char
coptimizations_doc_string
[]
=
"C optimization for new_persistent_id().
\n
"
"
\n
"
"$Id: coptimizations.c,v 1.15 2002/01/25 14:51:55 gvanrossum Exp $
\n
"
;
#include "Python.h"
#include "Python.h"
#define DONT_USE_CPERSISTENCECAPI
#define DONT_USE_CPERSISTENCECAPI
#include "cPersistence.h"
#include "cPersistence.h"
...
@@ -246,8 +251,7 @@ static struct PyMethodDef Module_Level__methods[] = {
...
@@ -246,8 +251,7 @@ static struct PyMethodDef Module_Level__methods[] = {
void
void
initcoptimizations
(
void
)
initcoptimizations
(
void
)
{
{
PyObject
*
m
,
*
d
,
*
s
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.14 $"
;
#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
);
...
@@ -269,17 +273,13 @@ initcoptimizations(void)
...
@@ -269,17 +273,13 @@ initcoptimizations(void)
UNLESS
(
ExtensionClassImported
)
return
;
UNLESS
(
ExtensionClassImported
)
return
;
m
=
Py_InitModule4
(
"coptimizations"
,
Module_Level__methods
,
m
=
Py_InitModule4
(
"coptimizations"
,
Module_Level__methods
,
"C optimizations"
,
coptimizations_doc_string
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
d
=
PyModule_GetDict
(
m
);
persistent_idType
.
ob_type
=&
PyType_Type
;
persistent_idType
.
ob_type
=&
PyType_Type
;
PyDict_SetItemString
(
d
,
"persistent_idType"
,
OBJECT
(
&
persistent_idType
));
PyDict_SetItemString
(
d
,
"persistent_idType"
,
OBJECT
(
&
persistent_idType
));
s
=
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
);
PyDict_SetItemString
(
d
,
"__version__"
,
s
);
Py_XDECREF
(
s
);
/* Check for errors */
/* Check for errors */
if
(
PyErr_Occurred
())
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module coptimizations"
);
Py_FatalError
(
"can't initialize module coptimizations"
);
...
...
trunk/src/ZODB/winlock.c
View file @
180fae82
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
static
char
winlock_doc_string
[]
=
static
char
winlock_doc_string
[]
=
"Lock files on Windows."
"Lock files on Windows."
"
\n
"
"
\n
"
"$Id: winlock.c,v 1.
6 2001/11/28 15:51:20 matt
Exp $
\n
"
;
"$Id: winlock.c,v 1.
7 2002/01/25 14:51:56 gvanrossum
Exp $
\n
"
;
#include "Python.h"
#include "Python.h"
...
@@ -67,7 +67,6 @@ static struct PyMethodDef methods[] = {
...
@@ -67,7 +67,6 @@ static struct PyMethodDef methods[] = {
DL_EXPORT
(
void
)
DL_EXPORT
(
void
)
initwinlock
(
void
)
{
initwinlock
(
void
)
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.6 $"
;
if
(
!
(
Error
=
PyString_FromString
(
"winlock.error"
)))
if
(
!
(
Error
=
PyString_FromString
(
"winlock.error"
)))
return
;
return
;
...
@@ -78,9 +77,4 @@ initwinlock(void) {
...
@@ -78,9 +77,4 @@ initwinlock(void) {
d
=
PyModule_GetDict
(
m
);
d
=
PyModule_GetDict
(
m
);
PyDict_SetItemString
(
d
,
"error"
,
Error
);
PyDict_SetItemString
(
d
,
"error"
,
Error
);
/* XXX below could blow up in PyDict_SetItem() */
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
}
}
trunk/src/persistent/cPersistence.c
View file @
180fae82
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
static
char
cPersistence_doc_string
[]
=
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\n
"
"Defines Persistent mixin class for persistent objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPersistence.c,v 1.4
7 2001/11/28 15:51:20 matt
Exp $
\n
"
;
"$Id: cPersistence.c,v 1.4
8 2002/01/25 14:51:55 gvanrossum
Exp $
\n
"
;
#include <string.h>
#include <string.h>
#include "cPersistence.h"
#include "cPersistence.h"
...
@@ -688,7 +688,6 @@ void
...
@@ -688,7 +688,6 @@ void
initcPersistence
(
void
)
initcPersistence
(
void
)
{
{
PyObject
*
m
,
*
d
,
*
s
;
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.47 $"
;
s
=
PyString_FromString
(
"TimeStamp"
);
s
=
PyString_FromString
(
"TimeStamp"
);
if
(
s
==
NULL
)
if
(
s
==
NULL
)
...
@@ -709,9 +708,6 @@ initcPersistence(void)
...
@@ -709,9 +708,6 @@ initcPersistence(void)
d
=
PyModule_GetDict
(
m
);
d
=
PyModule_GetDict
(
m
);
s
=
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
);
PyDict_SetItemString
(
d
,
"__version__"
,
s
);
Py_XDECREF
(
s
);
PyExtensionClass_Export
(
d
,
"Persistent"
,
Pertype
);
PyExtensionClass_Export
(
d
,
"Persistent"
,
Pertype
);
PyExtensionClass_Export
(
d
,
"Overridable"
,
Overridable
);
PyExtensionClass_Export
(
d
,
"Overridable"
,
Overridable
);
...
...
trunk/src/persistent/cPickleCache.c
View file @
180fae82
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
static
char
cPickleCache_doc_string
[]
=
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPickleCache.c,v 1.3
7 2001/11/28 15:51:20 matt
Exp $
\n
"
;
"$Id: cPickleCache.c,v 1.3
8 2002/01/25 14:51:55 gvanrossum
Exp $
\n
"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
#define UNLESS(E) if(!(E))
...
@@ -654,8 +654,7 @@ static struct PyMethodDef cCM_methods[] = {
...
@@ -654,8 +654,7 @@ static struct PyMethodDef cCM_methods[] = {
void
void
initcPickleCache
(
void
)
initcPickleCache
(
void
)
{
{
PyObject
*
m
,
*
d
,
*
s
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.37 $"
;
Cctype
.
ob_type
=&
PyType_Type
;
Cctype
.
ob_type
=&
PyType_Type
;
...
@@ -670,10 +669,6 @@ initcPickleCache(void)
...
@@ -670,10 +669,6 @@ initcPickleCache(void)
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_changed
=
PyString_FromString
(
"_p_changed"
);
py__p_changed
=
PyString_FromString
(
"_p_changed"
);
s
=
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
);
PyDict_SetItemString
(
d
,
"__version__"
,
s
);
Py_XDECREF
(
s
);
/* Check for errors */
/* Check for errors */
if
(
PyErr_Occurred
())
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module cPickleCache"
);
Py_FatalError
(
"can't initialize module cPickleCache"
);
...
...
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