[Python-checkins] python/dist/src/Mac/Modules/snd _Sndmodule.c,1.8,1.9

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


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

Modified Files:
	_Sndmodule.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: _Sndmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/snd/_Sndmodule.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** _Sndmodule.c	23 Apr 2002 22:43:06 -0000	1.8
--- _Sndmodule.c	17 Jul 2002 16:30:35 -0000	1.9
***************
*** 63,67 ****
  /* --------------------- Object type SndChannel --------------------- */
  
! staticforward PyTypeObject SndChannel_Type;
  
  #define SndCh_Check(x) ((x)->ob_type == &SndChannel_Type)
--- 63,67 ----
  /* --------------------- Object type SndChannel --------------------- */
  
! static PyTypeObject SndChannel_Type;
  
  #define SndCh_Check(x) ((x)->ob_type == &SndChannel_Type)
***************
*** 316,320 ****
  #define SndCh_hash NULL
  
! staticforward PyTypeObject SndChannel_Type = {
  	PyObject_HEAD_INIT(NULL)
  	0, /*ob_size*/
--- 316,320 ----
  #define SndCh_hash NULL
  
! static PyTypeObject SndChannel_Type = {
  	PyObject_HEAD_INIT(NULL)
  	0, /*ob_size*/
***************
*** 340,344 ****
  /* ------------------------ Object type SPB ------------------------- */
  
! staticforward PyTypeObject SPB_Type;
  
  #define SPBObj_Check(x) ((x)->ob_type == &SPB_Type)
--- 340,344 ----
  /* ------------------------ Object type SPB ------------------------- */
  
! static PyTypeObject SPB_Type;
  
  #define SPBObj_Check(x) ((x)->ob_type == &SPB_Type)
***************
*** 444,448 ****
  #define SPBObj_hash NULL
  
! staticforward PyTypeObject SPB_Type = {
  	PyObject_HEAD_INIT(NULL)
  	0, /*ob_size*/
--- 444,448 ----
  #define SPBObj_hash NULL
  
! static PyTypeObject SPB_Type = {
  	PyObject_HEAD_INIT(NULL)
  	0, /*ob_size*/