Commit afdc1bbd authored by Jim Fulton's avatar Jim Fulton

Changed object header layout.

parent d27670f8
/* /*
$Id: cPersistence.h,v 1.1 1997/04/01 17:15:48 jim Exp $ $Id: cPersistence.h,v 1.2 1997/04/22 02:40:28 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.2 1997/04/22 02:40:28 jim
Changed object header layout.
Revision 1.1 1997/04/01 17:15:48 jim Revision 1.1 1997/04/01 17:15:48 jim
*** empty log message *** *** empty log message ***
...@@ -67,16 +70,12 @@ ...@@ -67,16 +70,12 @@
#include "ExtensionClass.h" #include "ExtensionClass.h"
typedef struct {
PyObject_HEAD
time_t value;
} PATimeobject;
#define cPersistent_HEAD PyObject_HEAD \ #define cPersistent_HEAD PyObject_HEAD \
PyObject *oid; \
PyObject *jar; \ PyObject *jar; \
PATimeobject *atime; \ int oid; \
int state; int state; \
time_t atime; \
#define cPersistent_GHOST_STATE -1 #define cPersistent_GHOST_STATE -1
#define cPersistent_UPTODATE_STATE 0 #define cPersistent_UPTODATE_STATE 0
...@@ -86,6 +85,11 @@ typedef struct { ...@@ -86,6 +85,11 @@ typedef struct {
cPersistent_HEAD cPersistent_HEAD
} cPersistentObject; } cPersistentObject;
typedef struct {
PyObject_HEAD
cPersistentObject *object;
} PATimeobject;
typedef struct { typedef struct {
PyMethodChain *methods; PyMethodChain *methods;
......
/* /*
$Id: cPersistence.h,v 1.1 1997/04/01 17:15:48 jim Exp $ $Id: cPersistence.h,v 1.2 1997/04/22 02:40:28 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.2 1997/04/22 02:40:28 jim
Changed object header layout.
Revision 1.1 1997/04/01 17:15:48 jim Revision 1.1 1997/04/01 17:15:48 jim
*** empty log message *** *** empty log message ***
...@@ -67,16 +70,12 @@ ...@@ -67,16 +70,12 @@
#include "ExtensionClass.h" #include "ExtensionClass.h"
typedef struct {
PyObject_HEAD
time_t value;
} PATimeobject;
#define cPersistent_HEAD PyObject_HEAD \ #define cPersistent_HEAD PyObject_HEAD \
PyObject *oid; \
PyObject *jar; \ PyObject *jar; \
PATimeobject *atime; \ int oid; \
int state; int state; \
time_t atime; \
#define cPersistent_GHOST_STATE -1 #define cPersistent_GHOST_STATE -1
#define cPersistent_UPTODATE_STATE 0 #define cPersistent_UPTODATE_STATE 0
...@@ -86,6 +85,11 @@ typedef struct { ...@@ -86,6 +85,11 @@ typedef struct {
cPersistent_HEAD cPersistent_HEAD
} cPersistentObject; } cPersistentObject;
typedef struct {
PyObject_HEAD
cPersistentObject *object;
} PATimeobject;
typedef struct { typedef struct {
PyMethodChain *methods; PyMethodChain *methods;
......
/* /*
$Id: cPersistence.h,v 1.1 1997/04/01 17:15:48 jim Exp $ $Id: cPersistence.h,v 1.2 1997/04/22 02:40:28 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.2 1997/04/22 02:40:28 jim
Changed object header layout.
Revision 1.1 1997/04/01 17:15:48 jim Revision 1.1 1997/04/01 17:15:48 jim
*** empty log message *** *** empty log message ***
...@@ -67,16 +70,12 @@ ...@@ -67,16 +70,12 @@
#include "ExtensionClass.h" #include "ExtensionClass.h"
typedef struct {
PyObject_HEAD
time_t value;
} PATimeobject;
#define cPersistent_HEAD PyObject_HEAD \ #define cPersistent_HEAD PyObject_HEAD \
PyObject *oid; \
PyObject *jar; \ PyObject *jar; \
PATimeobject *atime; \ int oid; \
int state; int state; \
time_t atime; \
#define cPersistent_GHOST_STATE -1 #define cPersistent_GHOST_STATE -1
#define cPersistent_UPTODATE_STATE 0 #define cPersistent_UPTODATE_STATE 0
...@@ -86,6 +85,11 @@ typedef struct { ...@@ -86,6 +85,11 @@ typedef struct {
cPersistent_HEAD cPersistent_HEAD
} cPersistentObject; } cPersistentObject;
typedef struct {
PyObject_HEAD
cPersistentObject *object;
} PATimeobject;
typedef struct { typedef struct {
PyMethodChain *methods; PyMethodChain *methods;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment