Staging
v0.5.1
https://github.com/python/cpython
Revision 58e64a82eeec12711a55349f86ced990989a360b authored by Vladimir Marangozov on 03 September 2000, 23:47:08 UTC, committed by Vladimir Marangozov on 03 September 2000, 23:47:08 UTC
and this breaks the AIX build with an INT_MAX redefinition error.
"config.h" is included in pgenheaders.h, so moving this down fixes the
problem.
1 parent 1d62f49
Raw File
Tip revision: 58e64a82eeec12711a55349f86ced990989a360b authored by Vladimir Marangozov on 03 September 2000, 23:47:08 UTC
Move down the INT_MAX logic, because HAVE_LIMITS_H was always undefined
Tip revision: 58e64a8
floatobject.h

/* Float object interface */

/*
PyFloatObject represents a (double precision) floating point number.
*/

#ifndef Py_FLOATOBJECT_H
#define Py_FLOATOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    PyObject_HEAD
    double ob_fval;
} PyFloatObject;

extern DL_IMPORT(PyTypeObject) PyFloat_Type;

#define PyFloat_Check(op) ((op)->ob_type == &PyFloat_Type)

extern DL_IMPORT(PyObject *) PyFloat_FromString(PyObject*, char**);
extern DL_IMPORT(PyObject *) PyFloat_FromDouble(double);
extern DL_IMPORT(double) PyFloat_AsDouble(PyObject *);

/* Macro, trading safety for speed */
#define PyFloat_AS_DOUBLE(op) (((PyFloatObject *)(op))->ob_fval)

#ifdef __cplusplus
}
#endif
#endif /* !Py_FLOATOBJECT_H */
back to top