[Python-checkins] CVS: python/dist/src/Objects intobject.c,2.50,2.51

Tim Peters python-dev@python.org
Wed, 4 Oct 2000 18:42:32 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv5758/python/dist/src/Objects

Modified Files:
	intobject.c 
Log Message:
Move LONG_BIT from intobject.c to pyport.h.  #error if it's already been
#define'd to an unreasonable value (several recent gcc systems have
misdefined it, causing bogus overflows in integer multiplication).  Nuke
CHAR_BIT entirely.


Index: intobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/intobject.c,v
retrieving revision 2.50
retrieving revision 2.51
diff -C2 -r2.50 -r2.51
*** intobject.c	2000/09/26 05:46:01	2.50
--- intobject.c	2000/10/05 01:42:25	2.51
***************
*** 5,16 ****
  #include <ctype.h>
  
- #ifndef CHAR_BIT
- #define CHAR_BIT 8
- #endif
- 
- #ifndef LONG_BIT
- #define LONG_BIT (CHAR_BIT * sizeof(long))
- #endif
- 
  long
  PyInt_GetMax(void)
--- 5,8 ----