summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-08-15 14:31:13 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-08-15 14:31:13 (GMT)
commitf69633e4a1110a55c6801b2529b7333b6098a690 (patch)
tree3053abd72c470c67d040b3c1be95caf04c758526
parent61000333bfae0f835e56b8b1b4a8d2dc3863f78f (diff)
downloadcpython-f69633e4a1110a55c6801b2529b7333b6098a690.zip
cpython-f69633e4a1110a55c6801b2529b7333b6098a690.tar.gz
cpython-f69633e4a1110a55c6801b2529b7333b6098a690.tar.bz2
Made AEDesc_{New,Convert} global
-rw-r--r--Mac/Modules/ae/AEmodule.c10
-rw-r--r--Mac/Modules/ae/aesupport.py6
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 = []