From f69633e4a1110a55c6801b2529b7333b6098a690 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 15 Aug 1997 14:31:13 +0000 Subject: Made AEDesc_{New,Convert} global --- Mac/Modules/ae/AEmodule.c | 10 +++++----- Mac/Modules/ae/aesupport.py | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Mac/Modules/ae/AEmodule.c b/Mac/Modules/ae/AEmodule.c index dd4a197..a2a8b14 100644 --- a/Mac/Modules/ae/AEmodule.c +++ b/Mac/Modules/ae/AEmodule.c @@ -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*/ diff --git a/Mac/Modules/ae/aesupport.py b/Mac/Modules/ae/aesupport.py index 707e956..ee6ee7a 100644 --- a/Mac/Modules/ae/aesupport.py +++ b/Mac/Modules/ae/aesupport.py @@ -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 = [] -- cgit v0.12