[Python-checkins] CVS: python/dist/src/Mac/Modules/ctl Ctlmodule.c,1.44,1.45

Jack Jansen jackjansen@users.sourceforge.net
Wed, 20 Jun 2001 14:31:21 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules/ctl
In directory usw-pr-cvs1:/tmp/cvs-serv2348/Python/Mac/Modules/ctl

Modified Files:
	Ctlmodule.c 
Log Message:
Don't use extern when we mean staticforward (OSX gcc is picky about it).
Blacklist SendControlMessage: it's signature has changed between Universal Headers 3.3 and 3.4.

Index: Ctlmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ctl/Ctlmodule.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -r1.44 -r1.45
*** Ctlmodule.c	2001/05/22 21:51:44	1.44
--- Ctlmodule.c	2001/06/20 21:31:19	1.45
***************
*** 82,87 ****
  static ControlUserPaneTrackingUPP mytrackingproc_upp;
  
! extern int settrackfunc(PyObject *); 	/* forward */
! extern void clrtrackfunc(void);	/* forward */
  staticforward int setcallback(PyObject *, OSType, PyObject *, UniversalProcPtr *);
  
--- 82,87 ----
  static ControlUserPaneTrackingUPP mytrackingproc_upp;
  
! staticforward int settrackfunc(PyObject *); 	/* forward */
! staticforward void clrtrackfunc(void);	/* forward */
  staticforward int setcallback(PyObject *, OSType, PyObject *, UniversalProcPtr *);
  
***************
*** 911,932 ****
  #endif
  
- static PyObject *CtlObj_SendControlMessage(ControlObject *_self, PyObject *_args)
- {
- 	PyObject *_res = NULL;
- 	SInt32 _rv;
- 	SInt16 inMessage;
- 	SInt32 inParam;
- 	if (!PyArg_ParseTuple(_args, "hl",
- 	                      &inMessage,
- 	                      &inParam))
- 		return NULL;
- 	_rv = SendControlMessage(_self->ob_itself,
- 	                         inMessage,
- 	                         inParam);
- 	_res = Py_BuildValue("l",
- 	                     _rv);
- 	return _res;
- }
- 
  static PyObject *CtlObj_EmbedControl(ControlObject *_self, PyObject *_args)
  {
--- 911,914 ----
***************
*** 1896,1901 ****
  	 "(CCTabHandle newColorTable) -> None"},
  #endif
- 	{"SendControlMessage", (PyCFunction)CtlObj_SendControlMessage, 1,
- 	 "(SInt16 inMessage, SInt32 inParam) -> (SInt32 _rv)"},
  	{"EmbedControl", (PyCFunction)CtlObj_EmbedControl, 1,
  	 "(ControlHandle inContainer) -> None"},
--- 1878,1881 ----