Commit 5a97a90e authored by Jim Fulton's avatar Jim Fulton

Changed the way Per_setstate was exported to get rid of compilation

error.
parent 61414401
/* /*
$Id: cPersistence.c,v 1.4 1997/03/14 22:51:40 jim Exp $ $Id: cPersistence.c,v 1.5 1997/03/14 22:59:34 jim Exp $
C Persistence Module C Persistence Module
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
*****************************************************************************/ *****************************************************************************/
static char *what_string = "$Id: cPersistence.c,v 1.4 1997/03/14 22:51:40 jim Exp $"; static char *what_string = "$Id: cPersistence.c,v 1.5 1997/03/14 22:59:34 jim Exp $";
#include <time.h> #include <time.h>
#include "cPersistence.h" #include "cPersistence.h"
...@@ -705,20 +705,22 @@ static struct PyMethodDef cP_methods[] = { ...@@ -705,20 +705,22 @@ static struct PyMethodDef cP_methods[] = {
/* Initialization function for the module (*must* be called initcPersistence) */ /* Initialization function for the module (*must* be called initcPersistence) */
typedef int (*intfunctionwithpythonarg)(PyObject*);
static cPersistenceCAPIstruct static cPersistenceCAPIstruct
truecPersistenceCAPI = { truecPersistenceCAPI = {
&(Pertype.methods), &(Pertype.methods),
(getattrofunc)Per_getattro, /*tp_getattr with object key*/ (getattrofunc)Per_getattro, /*tp_getattr with object key*/
(setattrofunc)Per_setattro, /*tp_setattr with object key*/ (setattrofunc)Per_setattro, /*tp_setattr with object key*/
changed, changed,
Per_setstate, (intfunctionwithpythonarg)Per_setstate,
}; };
void void
initcPersistence() initcPersistence()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.4 $"; char *rev="$Revision: 1.5 $";
PATimeType.ob_type=&PyType_Type; PATimeType.ob_type=&PyType_Type;
...@@ -745,6 +747,10 @@ initcPersistence() ...@@ -745,6 +747,10 @@ initcPersistence()
/**************************************************************************** /****************************************************************************
$Log: cPersistence.c,v $ $Log: cPersistence.c,v $
Revision 1.5 1997/03/14 22:59:34 jim
Changed the way Per_setstate was exported to get rid of compilation
error.
Revision 1.4 1997/03/14 22:51:40 jim Revision 1.4 1997/03/14 22:51:40 jim
Added exported C interface, so that other C classes could subclass Added exported C interface, so that other C classes could subclass
from it. from it.
......
/* /*
$Id: cPersistence.c,v 1.4 1997/03/14 22:51:40 jim Exp $ $Id: cPersistence.c,v 1.5 1997/03/14 22:59:34 jim Exp $
C Persistence Module C Persistence Module
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
*****************************************************************************/ *****************************************************************************/
static char *what_string = "$Id: cPersistence.c,v 1.4 1997/03/14 22:51:40 jim Exp $"; static char *what_string = "$Id: cPersistence.c,v 1.5 1997/03/14 22:59:34 jim Exp $";
#include <time.h> #include <time.h>
#include "cPersistence.h" #include "cPersistence.h"
...@@ -705,20 +705,22 @@ static struct PyMethodDef cP_methods[] = { ...@@ -705,20 +705,22 @@ static struct PyMethodDef cP_methods[] = {
/* Initialization function for the module (*must* be called initcPersistence) */ /* Initialization function for the module (*must* be called initcPersistence) */
typedef int (*intfunctionwithpythonarg)(PyObject*);
static cPersistenceCAPIstruct static cPersistenceCAPIstruct
truecPersistenceCAPI = { truecPersistenceCAPI = {
&(Pertype.methods), &(Pertype.methods),
(getattrofunc)Per_getattro, /*tp_getattr with object key*/ (getattrofunc)Per_getattro, /*tp_getattr with object key*/
(setattrofunc)Per_setattro, /*tp_setattr with object key*/ (setattrofunc)Per_setattro, /*tp_setattr with object key*/
changed, changed,
Per_setstate, (intfunctionwithpythonarg)Per_setstate,
}; };
void void
initcPersistence() initcPersistence()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.4 $"; char *rev="$Revision: 1.5 $";
PATimeType.ob_type=&PyType_Type; PATimeType.ob_type=&PyType_Type;
...@@ -745,6 +747,10 @@ initcPersistence() ...@@ -745,6 +747,10 @@ initcPersistence()
/**************************************************************************** /****************************************************************************
$Log: cPersistence.c,v $ $Log: cPersistence.c,v $
Revision 1.5 1997/03/14 22:59:34 jim
Changed the way Per_setstate was exported to get rid of compilation
error.
Revision 1.4 1997/03/14 22:51:40 jim Revision 1.4 1997/03/14 22:51:40 jim
Added exported C interface, so that other C classes could subclass Added exported C interface, so that other C classes could subclass
from it. from it.
......
/* /*
$Id: cPersistence.c,v 1.4 1997/03/14 22:51:40 jim Exp $ $Id: cPersistence.c,v 1.5 1997/03/14 22:59:34 jim Exp $
C Persistence Module C Persistence Module
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
*****************************************************************************/ *****************************************************************************/
static char *what_string = "$Id: cPersistence.c,v 1.4 1997/03/14 22:51:40 jim Exp $"; static char *what_string = "$Id: cPersistence.c,v 1.5 1997/03/14 22:59:34 jim Exp $";
#include <time.h> #include <time.h>
#include "cPersistence.h" #include "cPersistence.h"
...@@ -705,20 +705,22 @@ static struct PyMethodDef cP_methods[] = { ...@@ -705,20 +705,22 @@ static struct PyMethodDef cP_methods[] = {
/* Initialization function for the module (*must* be called initcPersistence) */ /* Initialization function for the module (*must* be called initcPersistence) */
typedef int (*intfunctionwithpythonarg)(PyObject*);
static cPersistenceCAPIstruct static cPersistenceCAPIstruct
truecPersistenceCAPI = { truecPersistenceCAPI = {
&(Pertype.methods), &(Pertype.methods),
(getattrofunc)Per_getattro, /*tp_getattr with object key*/ (getattrofunc)Per_getattro, /*tp_getattr with object key*/
(setattrofunc)Per_setattro, /*tp_setattr with object key*/ (setattrofunc)Per_setattro, /*tp_setattr with object key*/
changed, changed,
Per_setstate, (intfunctionwithpythonarg)Per_setstate,
}; };
void void
initcPersistence() initcPersistence()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.4 $"; char *rev="$Revision: 1.5 $";
PATimeType.ob_type=&PyType_Type; PATimeType.ob_type=&PyType_Type;
...@@ -745,6 +747,10 @@ initcPersistence() ...@@ -745,6 +747,10 @@ initcPersistence()
/**************************************************************************** /****************************************************************************
$Log: cPersistence.c,v $ $Log: cPersistence.c,v $
Revision 1.5 1997/03/14 22:59:34 jim
Changed the way Per_setstate was exported to get rid of compilation
error.
Revision 1.4 1997/03/14 22:51:40 jim Revision 1.4 1997/03/14 22:51:40 jim
Added exported C interface, so that other C classes could subclass Added exported C interface, so that other C classes could subclass
from it. from it.
......
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