Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
d2d8b740
Commit
d2d8b740
authored
Jun 06, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed/fixed convenience macros.
parent
841bb0f8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
15 deletions
+33
-15
src/Persistence/cPersistence.h
src/Persistence/cPersistence.h
+11
-5
src/ZODB/cPersistence.h
src/ZODB/cPersistence.h
+11
-5
src/persistent/cPersistence.h
src/persistent/cPersistence.h
+11
-5
No files found.
src/Persistence/cPersistence.h
View file @
d2d8b740
/*
$Id: cPersistence.h,v 1.
5 1997/05/19 17:51:20
jim Exp $
$Id: cPersistence.h,v 1.
6 1997/06/06 19:13:32
jim Exp $
Definitions to facilitate making cPersistent subclasses in C.
...
...
@@ -56,6 +56,9 @@
$Log: cPersistence.h,v $
Revision 1.6 1997/06/06 19:13:32 jim
Changed/fixed convenience macros.
Revision 1.5 1997/05/19 17:51:20 jim
Added macros to simplify C PO implementation.
...
...
@@ -116,10 +119,13 @@ typedef struct {
static
cPersistenceCAPIstruct
*
cPersistenceCAPI
;
#define PER_ACTIVATE(O) (cPersistenceCAPI->setstate((PyObject*)(self)) >= 0)
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(self)) >= 0)
#define PER_PREVENT_DEACTIVATION(O) (self->atime=(time_t)1);
#define PER_ALLOW_DEACTIVATION(O) (self->atime=time(NULL));
#define PER_USE_OR_RETURN(O,R) \
if(cPersistenceCAPI->setstate((PyObject*)(O)) < 0) return (R)
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(O)))
#define PER_PREVENT_DEACTIVATION(O) ((O)->atime=(time_t)1);
#define PER_ALLOW_DEACTIVATION(O) ((O)->atime=time(NULL));
#endif
...
...
src/ZODB/cPersistence.h
View file @
d2d8b740
/*
$Id: cPersistence.h,v 1.
5 1997/05/19 17:51:20
jim Exp $
$Id: cPersistence.h,v 1.
6 1997/06/06 19:13:32
jim Exp $
Definitions to facilitate making cPersistent subclasses in C.
...
...
@@ -56,6 +56,9 @@
$Log: cPersistence.h,v $
Revision 1.6 1997/06/06 19:13:32 jim
Changed/fixed convenience macros.
Revision 1.5 1997/05/19 17:51:20 jim
Added macros to simplify C PO implementation.
...
...
@@ -116,10 +119,13 @@ typedef struct {
static
cPersistenceCAPIstruct
*
cPersistenceCAPI
;
#define PER_ACTIVATE(O) (cPersistenceCAPI->setstate((PyObject*)(self)) >= 0)
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(self)) >= 0)
#define PER_PREVENT_DEACTIVATION(O) (self->atime=(time_t)1);
#define PER_ALLOW_DEACTIVATION(O) (self->atime=time(NULL));
#define PER_USE_OR_RETURN(O,R) \
if(cPersistenceCAPI->setstate((PyObject*)(O)) < 0) return (R)
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(O)))
#define PER_PREVENT_DEACTIVATION(O) ((O)->atime=(time_t)1);
#define PER_ALLOW_DEACTIVATION(O) ((O)->atime=time(NULL));
#endif
...
...
src/persistent/cPersistence.h
View file @
d2d8b740
/*
$Id: cPersistence.h,v 1.
5 1997/05/19 17:51:20
jim Exp $
$Id: cPersistence.h,v 1.
6 1997/06/06 19:13:32
jim Exp $
Definitions to facilitate making cPersistent subclasses in C.
...
...
@@ -56,6 +56,9 @@
$Log: cPersistence.h,v $
Revision 1.6 1997/06/06 19:13:32 jim
Changed/fixed convenience macros.
Revision 1.5 1997/05/19 17:51:20 jim
Added macros to simplify C PO implementation.
...
...
@@ -116,10 +119,13 @@ typedef struct {
static
cPersistenceCAPIstruct
*
cPersistenceCAPI
;
#define PER_ACTIVATE(O) (cPersistenceCAPI->setstate((PyObject*)(self)) >= 0)
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(self)) >= 0)
#define PER_PREVENT_DEACTIVATION(O) (self->atime=(time_t)1);
#define PER_ALLOW_DEACTIVATION(O) (self->atime=time(NULL));
#define PER_USE_OR_RETURN(O,R) \
if(cPersistenceCAPI->setstate((PyObject*)(O)) < 0) return (R)
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(O)))
#define PER_PREVENT_DEACTIVATION(O) ((O)->atime=(time_t)1);
#define PER_ALLOW_DEACTIVATION(O) ((O)->atime=time(NULL));
#endif
...
...
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