diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-05-15 15:36:52 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-05-15 15:36:52 (GMT) |
commit | d9c01a56a0c824670591f7b2375b4c27e25b6269 (patch) | |
tree | 59c2b9c99fae5e2a0c82aa09dac634b9a752896e /Mac/Modules/htmlrender/htmlsupport.py | |
parent | 036194ceb4aae52f18a9896b5787c1405d218413 (diff) | |
download | cpython-d9c01a56a0c824670591f7b2375b4c27e25b6269.zip cpython-d9c01a56a0c824670591f7b2375b4c27e25b6269.tar.gz cpython-d9c01a56a0c824670591f7b2375b4c27e25b6269.tar.bz2 |
Manually added HRHTMLRenderingLibAvailable.
Blacklist HRDisposeReference and call it in the dispose routine.
Diffstat (limited to 'Mac/Modules/htmlrender/htmlsupport.py')
-rw-r--r-- | Mac/Modules/htmlrender/htmlsupport.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Mac/Modules/htmlrender/htmlsupport.py b/Mac/Modules/htmlrender/htmlsupport.py index d4547ca..b8c7eec 100644 --- a/Mac/Modules/htmlrender/htmlsupport.py +++ b/Mac/Modules/htmlrender/htmlsupport.py @@ -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 @@ functions = [] 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) |