Manually added HRHTMLRenderingLibAvailable.

Blacklist HRDisposeReference and call it in the dispose routine.
This commit is contained in:
Jack Jansen 2000-05-15 15:36:52 +00:00
parent 036194ceb4
commit d9c01a56a0
3 changed files with 23 additions and 3 deletions

View file

@ -143,8 +143,8 @@ class MyObjectDefinition(GlobalObjectDefinition):
## 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)
@ -160,6 +160,9 @@ class MyObjectDefinition(GlobalObjectDefinition):
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)