[Python-checkins] python/dist/src/Modules _tkinter.c,1.151,1.152

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sun, 30 Mar 2003 00:26:06 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv21305/Modules

Modified Files:
	_tkinter.c 
Log Message:
Fake bool API for Python 2.2.


Index: _tkinter.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_tkinter.c,v
retrieving revision 1.151
retrieving revision 1.152
diff -C2 -d -r1.151 -r1.152
*** _tkinter.c	3 Mar 2003 21:16:39 -0000	1.151
--- _tkinter.c	30 Mar 2003 08:26:04 -0000	1.152
***************
*** 47,50 ****
--- 47,55 ----
  #endif
  
+ #ifndef PyBool_Check
+ #define PyBool_Check(o)       0
+ #define PyBool_FromLong       PyInt_FromLong
+ #endif
+ 
  /* Starting with Tcl 8.4, many APIs offer const-correctness.  Unfortunately,
     making _tkinter correct for this API means to break earlier