[Python-checkins] python/dist/src/Mac/Modules/mlte _Mltemodule.c,1.10,1.11

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/mlte
In directory usw-pr-cvs1:/tmp/cvs-serv17711/Mac/Modules/mlte

Modified Files:
	_Mltemodule.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: _Mltemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/mlte/_Mltemodule.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** _Mltemodule.c	23 Apr 2002 22:44:15 -0000	1.10
--- _Mltemodule.c	17 Jul 2002 16:30:34 -0000	1.11
***************
*** 28,35 ****
  
  /* For now we declare them forward here. They'll go to mactoolbox later */
! staticforward PyObject *TXNObj_New(TXNObject);
! staticforward int TXNObj_Convert(PyObject *, TXNObject *);
! staticforward PyObject *TXNFontMenuObj_New(TXNFontMenuObject);
! staticforward int TXNFontMenuObj_Convert(PyObject *, TXNFontMenuObject *);
  
  // ADD declarations
--- 28,35 ----
  
  /* For now we declare them forward here. They'll go to mactoolbox later */
! static PyObject *TXNObj_New(TXNObject);
! static int TXNObj_Convert(PyObject *, TXNObject *);
! static PyObject *TXNFontMenuObj_New(TXNFontMenuObject);
! static int TXNFontMenuObj_Convert(PyObject *, TXNFontMenuObject *);
  
  // ADD declarations