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
f7916f2f
Commit
f7916f2f
authored
Dec 10, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added PER_USE macro.
parent
2fb67efd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
src/Persistence/cPersistence.h
src/Persistence/cPersistence.h
+7
-1
src/ZODB/cPersistence.h
src/ZODB/cPersistence.h
+7
-1
src/persistent/cPersistence.h
src/persistent/cPersistence.h
+7
-1
No files found.
src/Persistence/cPersistence.h
View file @
f7916f2f
/*
/*
$Id: cPersistence.h,v 1.
7 1997/07/18 14:15:39
jim Exp $
$Id: cPersistence.h,v 1.
8 1997/12/10 22:19:24
jim Exp $
Definitions to facilitate making cPersistent subclasses in C.
Definitions to facilitate making cPersistent subclasses in C.
...
@@ -56,6 +56,9 @@
...
@@ -56,6 +56,9 @@
$Log: cPersistence.h,v $
$Log: cPersistence.h,v $
Revision 1.8 1997/12/10 22:19:24 jim
Added PER_USE macro.
Revision 1.7 1997/07/18 14:15:39 jim
Revision 1.7 1997/07/18 14:15:39 jim
Added PER_DEL so that subclasses can handle deallocation correctly.
Added PER_DEL so that subclasses can handle deallocation correctly.
...
@@ -122,9 +125,12 @@ typedef struct {
...
@@ -122,9 +125,12 @@ typedef struct {
static
cPersistenceCAPIstruct
*
cPersistenceCAPI
;
static
cPersistenceCAPIstruct
*
cPersistenceCAPI
;
#define PER_USE_OR_RETURN(O,R) \
#define PER_USE_OR_RETURN(O,R) \
if(cPersistenceCAPI->setstate((PyObject*)(O)) < 0) return (R)
if(cPersistenceCAPI->setstate((PyObject*)(O)) < 0) return (R)
#define PER_USE(O) (cPersistenceCAPI->setstate((PyObject*)(O)))
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(O)))
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(O)))
#define PER_PREVENT_DEACTIVATION(O) ((O)->atime=(time_t)1);
#define PER_PREVENT_DEACTIVATION(O) ((O)->atime=(time_t)1);
...
...
src/ZODB/cPersistence.h
View file @
f7916f2f
/*
/*
$Id: cPersistence.h,v 1.
7 1997/07/18 14:15:39
jim Exp $
$Id: cPersistence.h,v 1.
8 1997/12/10 22:19:24
jim Exp $
Definitions to facilitate making cPersistent subclasses in C.
Definitions to facilitate making cPersistent subclasses in C.
...
@@ -56,6 +56,9 @@
...
@@ -56,6 +56,9 @@
$Log: cPersistence.h,v $
$Log: cPersistence.h,v $
Revision 1.8 1997/12/10 22:19:24 jim
Added PER_USE macro.
Revision 1.7 1997/07/18 14:15:39 jim
Revision 1.7 1997/07/18 14:15:39 jim
Added PER_DEL so that subclasses can handle deallocation correctly.
Added PER_DEL so that subclasses can handle deallocation correctly.
...
@@ -122,9 +125,12 @@ typedef struct {
...
@@ -122,9 +125,12 @@ typedef struct {
static
cPersistenceCAPIstruct
*
cPersistenceCAPI
;
static
cPersistenceCAPIstruct
*
cPersistenceCAPI
;
#define PER_USE_OR_RETURN(O,R) \
#define PER_USE_OR_RETURN(O,R) \
if(cPersistenceCAPI->setstate((PyObject*)(O)) < 0) return (R)
if(cPersistenceCAPI->setstate((PyObject*)(O)) < 0) return (R)
#define PER_USE(O) (cPersistenceCAPI->setstate((PyObject*)(O)))
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(O)))
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(O)))
#define PER_PREVENT_DEACTIVATION(O) ((O)->atime=(time_t)1);
#define PER_PREVENT_DEACTIVATION(O) ((O)->atime=(time_t)1);
...
...
src/persistent/cPersistence.h
View file @
f7916f2f
/*
/*
$Id: cPersistence.h,v 1.
7 1997/07/18 14:15:39
jim Exp $
$Id: cPersistence.h,v 1.
8 1997/12/10 22:19:24
jim Exp $
Definitions to facilitate making cPersistent subclasses in C.
Definitions to facilitate making cPersistent subclasses in C.
...
@@ -56,6 +56,9 @@
...
@@ -56,6 +56,9 @@
$Log: cPersistence.h,v $
$Log: cPersistence.h,v $
Revision 1.8 1997/12/10 22:19:24 jim
Added PER_USE macro.
Revision 1.7 1997/07/18 14:15:39 jim
Revision 1.7 1997/07/18 14:15:39 jim
Added PER_DEL so that subclasses can handle deallocation correctly.
Added PER_DEL so that subclasses can handle deallocation correctly.
...
@@ -122,9 +125,12 @@ typedef struct {
...
@@ -122,9 +125,12 @@ typedef struct {
static
cPersistenceCAPIstruct
*
cPersistenceCAPI
;
static
cPersistenceCAPIstruct
*
cPersistenceCAPI
;
#define PER_USE_OR_RETURN(O,R) \
#define PER_USE_OR_RETURN(O,R) \
if(cPersistenceCAPI->setstate((PyObject*)(O)) < 0) return (R)
if(cPersistenceCAPI->setstate((PyObject*)(O)) < 0) return (R)
#define PER_USE(O) (cPersistenceCAPI->setstate((PyObject*)(O)))
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(O)))
#define PER_CHANGED(O) (cPersistenceCAPI->changed((PyObject*)(O)))
#define PER_PREVENT_DEACTIVATION(O) ((O)->atime=(time_t)1);
#define PER_PREVENT_DEACTIVATION(O) ((O)->atime=(time_t)1);
...
...
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