summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/ibcarbon/IBCarbonsupport.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/ibcarbon/IBCarbonsupport.py')
-rw-r--r--Mac/Modules/ibcarbon/IBCarbonsupport.py51
1 files changed, 0 insertions, 51 deletions
diff --git a/Mac/Modules/ibcarbon/IBCarbonsupport.py b/Mac/Modules/ibcarbon/IBCarbonsupport.py
deleted file mode 100644
index 8744b69..0000000
--- a/Mac/Modules/ibcarbon/IBCarbonsupport.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# IBCarbonsupport.py
-
-from macsupport import *
-
-IBNibRef = OpaqueByValueType('IBNibRef', 'IBNibRefObj')
-#CFBundleRef = OpaqueByValueType('CFBundleRef')
-
-IBCarbonFunction = OSErrFunctionGenerator
-IBCarbonMethod = OSErrMethodGenerator
-
-includestuff = """
-#include <Carbon/Carbon.h>
-#include "pymactoolbox.h"
-
-#ifdef USE_TOOLBOX_OBJECT_GLUE
-extern int _CFStringRefObj_Convert(PyObject *, CFStringRef *);
-#endif
-
-"""
-
-initstuff = """
-
-"""
-
-module = MacModule('_IBCarbon', 'IBCarbon', includestuff, finalstuff, initstuff)
-
-class CFReleaserObject(PEP253Mixin, GlobalObjectDefinition):
- def outputFreeIt(self, name):
- Output("CFRelease(%s);" % name)
-
-class CFNibDesc(PEP253Mixin, GlobalObjectDefinition):
- def outputFreeIt(self, name):
- Output("DisposeNibReference(%s);" % name)
-
-#cfstringobject = CFReleaserObject("CFStringRef")
-#module.addobject(cfstringobject)
-#cfbundleobject = CFReleaserObject("CFBundleRef")
-#module.addobject(cfbundleobject)
-ibnibobject = CFNibDesc("IBNibRef", "IBNibRefObj")
-module.addobject(ibnibobject)
-
-functions = []
-methods = []
-
-exec(open('IBCarbongen.py').read())
-
-for f in functions: module.add(f)
-for m in methods: ibnibobject.add(m)
-
-SetOutputFileName('_IBCarbon.c')
-module.generate()