[Python-checkins] python/dist/src/Mac/Modules/ctl _Ctlmodule.c,1.17,1.18

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Wed, 17 Jul 2002 09:31:06 -0700


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

Modified Files:
	_Ctlmodule.c 
Log Message:
staticforward bites the dust.

The staticforward define was needed to support certain broken C
compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the
static keyword when it was used with a forward declaration of a static
initialized structure.  Standard C allows the forward declaration with
static, and we've decided to stop catering to broken C compilers.  (In
fact, we expect that the compilers are all fixed eight years later.)

I'm leaving staticforward and statichere defined in object.h as
static.  This is only for backwards compatibility with C extensions
that might still use it.

XXX I haven't updated the documentation.



Index: _Ctlmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ctl/_Ctlmodule.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** _Ctlmodule.c	23 Apr 2002 22:45:20 -0000	1.17
--- _Ctlmodule.c	17 Jul 2002 16:30:34 -0000	1.18
***************
*** 36,40 ****
  #endif
  
! staticforward PyObject *CtlObj_WhichControl(ControlHandle);
  
  #define as_Control(h) ((ControlHandle)h)
--- 36,40 ----
  #endif
  
! static PyObject *CtlObj_WhichControl(ControlHandle);
  
  #define as_Control(h) ((ControlHandle)h)
***************
*** 140,146 ****
  static ControlUserPaneTrackingUPP mytrackingproc_upp;
  
! staticforward int settrackfunc(PyObject *); 	/* forward */
! staticforward void clrtrackfunc(void);	/* forward */
! staticforward int setcallback(PyObject *, OSType, PyObject *, UniversalProcPtr *);
  
  static PyObject *Ctl_Error;
--- 140,146 ----
  static ControlUserPaneTrackingUPP mytrackingproc_upp;
  
! static int settrackfunc(PyObject *); 	/* forward */
! static void clrtrackfunc(void);	/* forward */
! static int setcallback(PyObject *, OSType, PyObject *, UniversalProcPtr *);
  
  static PyObject *Ctl_Error;