mirror of
https://github.com/python/cpython.git
synced 2025-10-27 19:54:38 +00:00
Manually added HRHTMLRenderingLibAvailable.
Blacklist HRDisposeReference and call it in the dispose routine.
This commit is contained in:
parent
036194ceb4
commit
d9c01a56a0
3 changed files with 23 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue