[Python-checkins] python/dist/src/Include Python.h,2.53,2.54 longobject.h,2.24,2.25
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Thu, 11 Jul 2002 22:01:22 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv2058
Modified Files:
Python.h longobject.h
Log Message:
HAVE_LIMITS_H -- raise #error if not defined; limits.h is std C
ULONG_MAX -- removed; std C requires it in limits.h
LONGLONG_MAX -- removed; never used
ULONGLONGMAX -- removed; never used
Index: Python.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/Python.h,v
retrieving revision 2.53
retrieving revision 2.54
diff -C2 -d -r2.53 -r2.54
*** Python.h 7 Jul 2002 03:59:33 -0000 2.53
--- Python.h 12 Jul 2002 05:01:20 -0000 2.54
***************
*** 34,37 ****
--- 34,39 ----
#ifdef HAVE_LIMITS_H
#include <limits.h>
+ #else
+ #error "limits.h is required by std C -- why isn't HAVE_LIMITS_H defined?"
#endif
Index: longobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/longobject.h,v
retrieving revision 2.24
retrieving revision 2.25
diff -C2 -d -r2.24 -r2.25
*** longobject.h 10 Sep 2001 20:52:47 -0000 2.24
--- longobject.h 12 Jul 2002 05:01:20 -0000 2.25
***************
*** 34,49 ****
#ifdef HAVE_LONG_LONG
-
- /* Hopefully this is portable... */
- #ifndef ULONG_MAX
- #define ULONG_MAX 4294967295U
- #endif
- #ifndef LONGLONG_MAX
- #define LONGLONG_MAX 9223372036854775807LL
- #endif
- #ifndef ULONGLONG_MAX
- #define ULONGLONG_MAX 0xffffffffffffffffULL
- #endif
-
extern DL_IMPORT(PyObject *) PyLong_FromLongLong(LONG_LONG);
extern DL_IMPORT(PyObject *) PyLong_FromUnsignedLongLong(unsigned LONG_LONG);
--- 34,37 ----