Diff of /Mac/Modules/carbonevt/_CarbonEvtmodule.c [c840c5] .. [ca568f]  Maximize  Restore

Repo status: analyzing...

Switch to side-by-side view

--- a/Mac/Modules/carbonevt/_CarbonEvtmodule.c
+++ b/Mac/Modules/carbonevt/_CarbonEvtmodule.c
@@ -27,11 +27,13 @@
 PyObject *EventRef_New(EventRef itself);
 
 /********** EventTypeSpec *******/
+#if 0
 static PyObject*
 EventTypeSpec_New(EventTypeSpec *in)
 {
 	return Py_BuildValue("ll", in->eventClass, in->eventKind);
 }
+#endif
 
 static int
 EventTypeSpec_Convert(PyObject *v, EventTypeSpec *out)
@@ -40,7 +42,7 @@
 	                PyMac_GetOSType, &(out->eventClass),
 	                &(out->eventKind)))
 		return 1;
-	return NULL;
+	return 0;
 }
 
 /********** end EventTypeSpec *******/
@@ -66,19 +68,20 @@
 /********** end HIPoint *******/
 
 /********** EventHotKeyID *******/
-
+#if 0
 static PyObject*
 EventHotKeyID_New(EventHotKeyID *in)
 {
 	return Py_BuildValue("ll", in->signature, in->id);
 }
+#endif
 
 static int
 EventHotKeyID_Convert(PyObject *v, EventHotKeyID *out)
 {
 	if (PyArg_ParseTuple(v, "ll", &out->signature, &out->id))
 		return 1;
-	return NULL;
+	return 0;
 }
 
 /********** end EventHotKeyID *******/

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks