[Python-checkins] CVS: python/dist/src/Mac/Modules/dlg _Dlgmodule.c,1.6,1.7

Jack Jansen jackjansen@users.sourceforge.net
2001年12月14日 15:03:09 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/dlg
In directory usw-pr-cvs1:/tmp/cvs-serv20019/Python/Mac/Modules/dlg
Modified Files:
	_Dlgmodule.c 
Log Message:
Quick patch to allow building with Universal Headers 3.4.
Index: _Dlgmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/dlg/_Dlgmodule.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** _Dlgmodule.c	2001年12月08日 18:02:52	1.6
--- _Dlgmodule.c	2001年12月14日 23:03:07	1.7
***************
*** 877,897 ****
 }
 
- #if !TARGET_API_MAC_CARBON
- 
- static PyObject *DlgObj_SetGrafPortOfDialog(DialogObject *_self, PyObject *_args)
- {
- 	PyObject *_res = NULL;
- #ifndef SetGrafPortOfDialog
- 	PyMac_PRECHECK(SetGrafPortOfDialog);
- #endif
- 	if (!PyArg_ParseTuple(_args, ""))
- 		return NULL;
- 	SetGrafPortOfDialog(_self->ob_itself);
- 	Py_INCREF(Py_None);
- 	_res = Py_None;
- 	return _res;
- }
- #endif
- 
 static PyMethodDef DlgObj_methods[] = {
 	{"DrawDialog", (PyCFunction)DlgObj_DrawDialog, 1,
--- 877,880 ----
***************
*** 976,983 ****
 	 "() -> (CGrafPtr _rv)"},
 
- #if !TARGET_API_MAC_CARBON
- 	{"SetGrafPortOfDialog", (PyCFunction)DlgObj_SetGrafPortOfDialog, 1,
- 	 "() -> None"},
- #endif
 	{NULL, NULL, 0}
 };
--- 959,962 ----

AltStyle によって変換されたページ (->オリジナル) /