[Python-checkins] CVS: python/dist/src/Python bltinmodule.c,2.180,2.181 ceval.c,2.206,2.207 codecs.c,2.12,2.13 compile.c,2.141,2.142 getargs.c,2.48,2.49 modsupport.c,2.53,2.54
Fred L. Drake
python-dev@python.org
Mon, 25 Sep 2000 22:46:04 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Modules _localemodule.c,2.17,2.18 _sre.c,2.42,2.43 arraymodule.c,2.57,2.58 selectmodule.c,2.46,2.47 stropmodule.c,2.74,2.75 structmodule.c,2.40,2.41 md5.h,2.6,2.7
- Next message: [Python-checkins] CVS: python/dist/src/Objects complexobject.c,2.31,2.32 fileobject.c,2.88,2.89 floatobject.c,2.72,2.73 intobject.c,2.49,2.50 listobject.c,2.87,2.88 object.c,2.101,2.102 stringobject.c,2.89,2.90 unicodeobject.c,2.63,2.64
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv27300/Python
Modified Files:
bltinmodule.c ceval.c codecs.c compile.c getargs.c
modsupport.c
Log Message:
Rationalize use of limits.h, moving the inclusion to Python.h.
Add definitions of INT_MAX and LONG_MAX to pyport.h.
Remove includes of limits.h and conditional definitions of INT_MAX
and LONG_MAX elsewhere.
This closes SourceForge patch #101659 and bug #115323.
Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.180
retrieving revision 2.181
diff -C2 -r2.180 -r2.181
*** bltinmodule.c 2000/09/19 20:59:36 2.180
--- bltinmodule.c 2000/09/26 05:46:01 2.181
***************
*** 13,19 ****
#include <unistd.h>
#endif
- #ifdef HAVE_LIMITS_H
- #include <limits.h>
- #endif
/* Forward */
--- 13,16 ----
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.206
retrieving revision 2.207
diff -C2 -r2.206 -r2.207
*** ceval.c 2000/09/19 20:59:52 2.206
--- ceval.c 2000/09/26 05:46:01 2.207
***************
*** 21,30 ****
#include <ctype.h>
- #ifdef HAVE_LIMITS_H
- #include <limits.h>
- #else
- #define INT_MAX 2147483647
- #endif
-
/* Turn this on if your compiler chokes on the big switch: */
/* #define CASE_TOO_BIG 1 */
--- 21,24 ----
Index: codecs.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/codecs.c,v
retrieving revision 2.12
retrieving revision 2.13
diff -C2 -r2.12 -r2.13
*** codecs.c 2000/08/03 16:24:25 2.12
--- codecs.c 2000/09/26 05:46:01 2.13
***************
*** 11,17 ****
#include "Python.h"
#include <ctype.h>
- #ifdef HAVE_LIMITS_H
- #include <limits.h>
- #endif
/* --- Globals ------------------------------------------------------------ */
--- 11,14 ----
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.141
retrieving revision 2.142
diff -C2 -r2.141 -r2.142
*** compile.c 2000/09/08 16:31:24 2.141
--- compile.c 2000/09/26 05:46:01 2.142
***************
*** 25,34 ****
#include <ctype.h>
- #ifdef HAVE_LIMITS_H
- #include <limits.h>
- #endif
- #ifndef INT_MAX
- #define INT_MAX 2147483647
- #endif
/* Three symbols from graminit.h are also defined in Python.h, with
--- 25,28 ----
Index: getargs.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/getargs.c,v
retrieving revision 2.48
retrieving revision 2.49
diff -C2 -r2.48 -r2.49
*** getargs.c 2000/09/21 21:08:30 2.48
--- getargs.c 2000/09/26 05:46:01 2.49
***************
*** 10,16 ****
#include <ctype.h>
- #ifdef HAVE_LIMITS_H
- #include <limits.h>
- #endif
--- 10,13 ----
Index: modsupport.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/modsupport.c,v
retrieving revision 2.53
retrieving revision 2.54
diff -C2 -r2.53 -r2.54
*** modsupport.c 2000/09/23 03:24:27 2.53
--- modsupport.c 2000/09/26 05:46:01 2.54
***************
*** 3,9 ****
#include "Python.h"
- #ifdef HAVE_LIMITS_H
- #include <limits.h>
- #endif
#ifdef MPW /* MPW pushes 'extended' for float and double types with varargs */
--- 3,6 ----
- Previous message: [Python-checkins] CVS: python/dist/src/Modules _localemodule.c,2.17,2.18 _sre.c,2.42,2.43 arraymodule.c,2.57,2.58 selectmodule.c,2.46,2.47 stropmodule.c,2.74,2.75 structmodule.c,2.40,2.41 md5.h,2.6,2.7
- Next message: [Python-checkins] CVS: python/dist/src/Objects complexobject.c,2.31,2.32 fileobject.c,2.88,2.89 floatobject.c,2.72,2.73 intobject.c,2.49,2.50 listobject.c,2.87,2.88 object.c,2.101,2.102 stringobject.c,2.89,2.90 unicodeobject.c,2.63,2.64
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]