[Python-checkins] CVS: python/dist/src/Include longintrepr.h,2.7,2.8 longobject.h,2.15,2.16
Tim Peters
python-dev@python.org
Fri, 7 Jul 2000 08:53:31 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory slayer.i.sourceforge.net:/tmp/cvs-serv6414/src/Include
Modified Files:
longintrepr.h longobject.h
Log Message:
Some cleanup of longs in prepartion for Cray J90 fixes: got
rid of Py_PROTO, switched to ANSI function decls, and did some
minor fiddling.
Index: longintrepr.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/longintrepr.h,v
retrieving revision 2.7
retrieving revision 2.8
diff -C2 -r2.7 -r2.8
*** longintrepr.h 2000/06/30 23:58:04 2.7
--- longintrepr.h 2000/07/07 15:53:28 2.8
***************
*** 53,57 ****
};
! DL_IMPORT(PyLongObject *) _PyLong_New Py_PROTO((int));
#ifdef __cplusplus
--- 53,57 ----
};
! DL_IMPORT(PyLongObject *) _PyLong_New(int);
#ifdef __cplusplus
Index: longobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/longobject.h,v
retrieving revision 2.15
retrieving revision 2.16
diff -C2 -r2.15 -r2.16
*** longobject.h 2000/06/30 23:58:04 2.15
--- longobject.h 2000/07/07 15:53:28 2.16
***************
*** 23,34 ****
#define PyLong_Check(op) ((op)->ob_type == &PyLong_Type)
! extern DL_IMPORT(PyObject *) PyLong_FromLong Py_PROTO((long));
! extern DL_IMPORT(PyObject *) PyLong_FromUnsignedLong Py_PROTO((unsigned long));
! extern DL_IMPORT(PyObject *) PyLong_FromDouble Py_PROTO((double));
! extern DL_IMPORT(long) PyLong_AsLong Py_PROTO((PyObject *));
! extern DL_IMPORT(unsigned long) PyLong_AsUnsignedLong Py_PROTO((PyObject *));
! extern DL_IMPORT(double) PyLong_AsDouble Py_PROTO((PyObject *));
! extern DL_IMPORT(PyObject *) PyLong_FromVoidPtr Py_PROTO((void *));
! extern DL_IMPORT(void *) PyLong_AsVoidPtr Py_PROTO((PyObject *));
#ifdef HAVE_LONG_LONG
--- 23,34 ----
#define PyLong_Check(op) ((op)->ob_type == &PyLong_Type)
! extern DL_IMPORT(PyObject *) PyLong_FromLong(long);
! extern DL_IMPORT(PyObject *) PyLong_FromUnsignedLong(unsigned long);
! extern DL_IMPORT(PyObject *) PyLong_FromDouble(double);
! extern DL_IMPORT(long) PyLong_AsLong(PyObject *);
! extern DL_IMPORT(unsigned long) PyLong_AsUnsignedLong(PyObject *);
! extern DL_IMPORT(double) PyLong_AsDouble(PyObject *);
! extern DL_IMPORT(PyObject *) PyLong_FromVoidPtr(void *);
! extern DL_IMPORT(void *) PyLong_AsVoidPtr(PyObject *);
#ifdef HAVE_LONG_LONG
***************
*** 55,66 ****
#endif
! extern DL_IMPORT(PyObject *) PyLong_FromLongLong Py_PROTO((LONG_LONG));
! extern DL_IMPORT(PyObject *) PyLong_FromUnsignedLongLong Py_PROTO((unsigned LONG_LONG));
! extern DL_IMPORT(LONG_LONG) PyLong_AsLongLong Py_PROTO((PyObject *));
! extern DL_IMPORT(unsigned LONG_LONG) PyLong_AsUnsignedLongLong Py_PROTO((PyObject *));
#endif /* HAVE_LONG_LONG */
! DL_IMPORT(PyObject *) PyLong_FromString Py_PROTO((char *, char **, int));
! DL_IMPORT(PyObject *) PyLong_FromUnicode Py_PROTO((Py_UNICODE*, int, int));
#ifdef __cplusplus
--- 55,66 ----
#endif
! extern DL_IMPORT(PyObject *) PyLong_FromLongLong(LONG_LONG);
! extern DL_IMPORT(PyObject *) PyLong_FromUnsignedLongLong(unsigned LONG_LONG);
! extern DL_IMPORT(LONG_LONG) PyLong_AsLongLong(PyObject *);
! extern DL_IMPORT(unsigned LONG_LONG) PyLong_AsUnsignedLongLong(PyObject *);
#endif /* HAVE_LONG_LONG */
! DL_IMPORT(PyObject *) PyLong_FromString(char *, char **, int);
! DL_IMPORT(PyObject *) PyLong_FromUnicode(Py_UNICODE*, int, int);
#ifdef __cplusplus