diff Mac/Modules/htmlrender/htmlsupport.py @ 12711:b817f1639939 legacy-trunk

Manually added HRHTMLRenderingLibAvailable. Blacklist HRDisposeReference and call it in the dispose routine.
author Jack Jansen <jack.jansen@cwi.nl>
date Mon, 15 May 2000 15:36:52 +0000
parents 1bf714e0c10f
children e8ce1bb056ae
line wrap: on
line diff
--- a/Mac/Modules/htmlrender/htmlsupport.py	Mon May 15 15:35:08 2000 +0000
+++ b/Mac/Modules/htmlrender/htmlsupport.py	Mon May 15 15:36:52 2000 +0000
@@ -143,8 +143,8 @@
 ##		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 @@
 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)