Blacklist HRDisposeReference and call it in the dispose routine.
return _res;
}
+static PyObject *Html_HRHTMLRenderingLibAvailable(_self, _args)
+ PyObject *_self;
+ PyObject *_args;
+{
+ PyObject *_res = NULL;
+ int _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = HRHTMLRenderingLibAvailable();
+ _res = Py_BuildValue("i",
+ _rv);
+ return _res;
+}
+
static PyMethodDef Html_methods[] = {
{"HRGetHTMLRenderingLibVersion", (PyCFunction)Html_HRGetHTMLRenderingLibVersion, 1,
"() -> (NumVersion returnVers)"},
"(char * rootURL, char * linkURL) -> (FSSpec destSpec)"},
{"HRUtilGetURLFromFSSpec", (PyCFunction)Html_HRUtilGetURLFromFSSpec, 1,
"(FSSpec fsspec, Handle urlHandle) -> None"},
+ {"HRHTMLRenderingLibAvailable", (PyCFunction)Html_HRHTMLRenderingLibAvailable, 1,
+ "() -> (int _rv)"},
{NULL, NULL, 0}
};
def main():
## input = LONG + ".h"
- input = "Macintosh HD:SWdev:Jack:Universal:Interfaces:CIncludes:HTMLRendering.h"
+ input = "Macintosh HD:ufs:jack:SWdev:Universal:Interfaces:CIncludes:HTMLRendering.h"
output = SHORT + "gen.py"
defsoutput = TOOLBOXDIR + LONG + ".py"
scanner = MyScanner(input, output, defsoutput)
def makeblacklistnames(self):
return [
+ "HRDisposeReference",
]
def makeblacklisttypes(self):
## Output("if (v == Py_None) { *p_itself = NULL; return 1; }")
## Output("if (PyInt_Check(v)) { *p_itself = (DialogPtr)PyInt_AsLong(v);")
## Output(" return 1; }")
-## def outputFreeIt(self, itselfname):
-## Output("DisposeDialog(%s);", itselfname)
+ def outputFreeIt(self, itselfname):
+ Output("HRDisposeReference(%s);", itselfname)
# Create the generator groups and link them
module = MacModule('HtmlRender', 'Html', includestuff, finalstuff, initstuff)
methods = []
execfile("htmlgen.py")
+f = Function(int, 'HRHTMLRenderingLibAvailable')
+functions.append(f)
+
# add the populated lists to the generator groups
for f in functions: module.add(f)
for f in methods: object.add(f)