Made AEDesc_{New,Convert} global

This commit is contained in:
Jack Jansen 1997-08-15 14:31:13 +00:00
parent 61000333bf
commit f69633e4a1
2 changed files with 8 additions and 8 deletions

View File

@ -87,7 +87,7 @@ static PyObject *AE_Error;
/* ----------------------- Object type AEDesc ----------------------- */
staticforward PyTypeObject AEDesc_Type;
PyTypeObject AEDesc_Type;
#define AEDesc_Check(x) ((x)->ob_type == &AEDesc_Type)
@ -96,7 +96,7 @@ typedef struct AEDescObject {
AEDesc ob_itself;
} AEDescObject;
static PyObject *AEDesc_New(itself)
PyObject *AEDesc_New(itself)
AEDesc *itself;
{
AEDescObject *it;
@ -105,7 +105,7 @@ static PyObject *AEDesc_New(itself)
it->ob_itself = *itself;
return (PyObject *)it;
}
static AEDesc_Convert(v, p_itself)
AEDesc_Convert(v, p_itself)
PyObject *v;
AEDesc *p_itself;
{
@ -784,7 +784,7 @@ static PyMethodDef AEDesc_methods[] = {
{NULL, NULL, 0}
};
static PyMethodChain AEDesc_chain = { AEDesc_methods, NULL };
PyMethodChain AEDesc_chain = { AEDesc_methods, NULL };
static PyObject *AEDesc_getattr(self, name)
AEDescObject *self;
@ -813,7 +813,7 @@ static PyObject *AEDesc_getattr(self, name)
#define AEDesc_setattr NULL
staticforward PyTypeObject AEDesc_Type = {
PyTypeObject AEDesc_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
"AEDesc", /*tp_name*/

View File

@ -162,10 +162,10 @@ initstuff = initstuff + """
module = MacModule('AE', 'AE', includestuff, finalstuff, initstuff)
class AEDescDefiniton(ObjectDefinition):
class AEDescDefinition(GlobalObjectDefinition):
def __init__(self, name, prefix = None, itselftype = None):
ObjectDefinition.__init__(self, name, prefix or name, itselftype or name)
GlobalObjectDefinition.__init__(self, name, prefix or name, itselftype or name)
self.argref = "*"
def outputFreeIt(self, name):
@ -192,7 +192,7 @@ if (strcmp(name, "__members__") == 0)
""")
aedescobject = AEDescDefiniton('AEDesc')
aedescobject = AEDescDefinition('AEDesc')
module.addobject(aedescobject)
functions = []