diff Mac/Modules/htmlrender/HtmlRendermodule.c @ 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 91dd223829c6
line wrap: on
line diff
--- a/Mac/Modules/htmlrender/HtmlRendermodule.c	Mon May 15 15:35:08 2000 +0000
+++ b/Mac/Modules/htmlrender/HtmlRendermodule.c	Mon May 15 15:36:52 2000 +0000
@@ -755,6 +755,20 @@
 	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)"},
@@ -772,6 +786,8 @@
 	 "(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}
 };