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
nexedi
ZODB
Commits
2f9968f4
Commit
2f9968f4
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
6c7d0c42
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
56 deletions
+18
-56
src/Persistence/cPersistence.c
src/Persistence/cPersistence.c
+1
-5
src/Persistence/cPickleCache.c
src/Persistence/cPickleCache.c
+2
-7
src/ZODB/TimeStamp.c
src/ZODB/TimeStamp.c
+1
-6
src/ZODB/cPersistence.c
src/ZODB/cPersistence.c
+1
-5
src/ZODB/cPickleCache.c
src/ZODB/cPickleCache.c
+2
-7
src/ZODB/coptimizations.c
src/ZODB/coptimizations.c
+7
-7
src/ZODB/winlock.c
src/ZODB/winlock.c
+1
-7
src/persistent/cPersistence.c
src/persistent/cPersistence.c
+1
-5
src/persistent/cPickleCache.c
src/persistent/cPickleCache.c
+2
-7
No files found.
src/Persistence/cPersistence.c
View file @
2f9968f4
...
...
@@ -13,7 +13,7 @@
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\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 "cPersistence.h"
...
...
@@ -688,7 +688,6 @@ void
initcPersistence
(
void
)
{
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.47 $"
;
s
=
PyString_FromString
(
"TimeStamp"
);
if
(
s
==
NULL
)
...
...
@@ -709,9 +708,6 @@ initcPersistence(void)
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
,
"Overridable"
,
Overridable
);
...
...
src/Persistence/cPickleCache.c
View file @
2f9968f4
...
...
@@ -13,7 +13,7 @@
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\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 UNLESS(E) if(!(E))
...
...
@@ -654,8 +654,7 @@ static struct PyMethodDef cCM_methods[] = {
void
initcPickleCache
(
void
)
{
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.37 $"
;
PyObject
*
m
,
*
d
;
Cctype
.
ob_type
=&
PyType_Type
;
...
...
@@ -670,10 +669,6 @@ initcPickleCache(void)
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
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 */
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module cPickleCache"
);
...
...
src/ZODB/TimeStamp.c
View file @
2f9968f4
...
...
@@ -14,7 +14,7 @@
static
char
TimeStamp_module_documentation
[]
=
"Defines 64-bit TimeStamp objects used as ZODB serial numbers.
\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 <time.h>
...
...
@@ -412,7 +412,6 @@ void
initTimeStamp
(
void
)
{
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.12 $"
;
if
(
TimeStamp_init_gmoff
()
<
0
)
return
;
if
(
!
ExtensionClassImported
)
return
;
...
...
@@ -437,10 +436,6 @@ initTimeStamp(void)
PyDict_SetItemString
(
d
,
"error"
,
s
);
Py_XDECREF
(
s
);
s
=
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
);
PyDict_SetItemString
(
d
,
"__version__"
,
s
);
Py_XDECREF
(
s
);
/* Check for errors */
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module TimeStamp"
);
...
...
src/ZODB/cPersistence.c
View file @
2f9968f4
...
...
@@ -13,7 +13,7 @@
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\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 "cPersistence.h"
...
...
@@ -688,7 +688,6 @@ void
initcPersistence
(
void
)
{
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.47 $"
;
s
=
PyString_FromString
(
"TimeStamp"
);
if
(
s
==
NULL
)
...
...
@@ -709,9 +708,6 @@ initcPersistence(void)
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
,
"Overridable"
,
Overridable
);
...
...
src/ZODB/cPickleCache.c
View file @
2f9968f4
...
...
@@ -13,7 +13,7 @@
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\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 UNLESS(E) if(!(E))
...
...
@@ -654,8 +654,7 @@ static struct PyMethodDef cCM_methods[] = {
void
initcPickleCache
(
void
)
{
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.37 $"
;
PyObject
*
m
,
*
d
;
Cctype
.
ob_type
=&
PyType_Type
;
...
...
@@ -670,10 +669,6 @@ initcPickleCache(void)
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
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 */
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module cPickleCache"
);
...
...
src/ZODB/coptimizations.c
View file @
2f9968f4
...
...
@@ -10,6 +10,11 @@
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"
#define DONT_USE_CPERSISTENCECAPI
#include "cPersistence.h"
...
...
@@ -246,8 +251,7 @@ static struct PyMethodDef Module_Level__methods[] = {
void
initcoptimizations
(
void
)
{
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.14 $"
;
PyObject
*
m
,
*
d
;
#define make_string(S) if (! (py_ ## S=PyString_FromString(#S))) return
make_string
(
_p_oid
);
...
...
@@ -269,17 +273,13 @@ initcoptimizations(void)
UNLESS
(
ExtensionClassImported
)
return
;
m
=
Py_InitModule4
(
"coptimizations"
,
Module_Level__methods
,
"C optimizations"
,
coptimizations_doc_string
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
d
=
PyModule_GetDict
(
m
);
persistent_idType
.
ob_type
=&
PyType_Type
;
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 */
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module coptimizations"
);
...
...
src/ZODB/winlock.c
View file @
2f9968f4
...
...
@@ -13,7 +13,7 @@
static
char
winlock_doc_string
[]
=
"Lock files on Windows."
"
\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"
...
...
@@ -67,7 +67,6 @@ static struct PyMethodDef methods[] = {
DL_EXPORT
(
void
)
initwinlock
(
void
)
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.6 $"
;
if
(
!
(
Error
=
PyString_FromString
(
"winlock.error"
)))
return
;
...
...
@@ -78,9 +77,4 @@ initwinlock(void) {
d
=
PyModule_GetDict
(
m
);
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
));
}
src/persistent/cPersistence.c
View file @
2f9968f4
...
...
@@ -13,7 +13,7 @@
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\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 "cPersistence.h"
...
...
@@ -688,7 +688,6 @@ void
initcPersistence
(
void
)
{
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.47 $"
;
s
=
PyString_FromString
(
"TimeStamp"
);
if
(
s
==
NULL
)
...
...
@@ -709,9 +708,6 @@ initcPersistence(void)
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
,
"Overridable"
,
Overridable
);
...
...
src/persistent/cPickleCache.c
View file @
2f9968f4
...
...
@@ -13,7 +13,7 @@
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\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 UNLESS(E) if(!(E))
...
...
@@ -654,8 +654,7 @@ static struct PyMethodDef cCM_methods[] = {
void
initcPickleCache
(
void
)
{
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.37 $"
;
PyObject
*
m
,
*
d
;
Cctype
.
ob_type
=&
PyType_Type
;
...
...
@@ -670,10 +669,6 @@ initcPickleCache(void)
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
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 */
if
(
PyErr_Occurred
())
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