Mercurial > cpython-lru_cache-weakref
diff Include/floatobject.h @ 13444:5709ddba423c legacy-trunk
ANSI-fication and Py_PROTO extermination.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Sun, 09 Jul 2000 00:20:36 +0000 |
| parents | 87ee82e5c56d |
| children | 6f6f965c5e2d |
line wrap: on
line diff
--- a/Include/floatobject.h Sat Jul 08 23:37:28 2000 +0000 +++ b/Include/floatobject.h Sun Jul 09 00:20:36 2000 +0000 @@ -1,9 +1,3 @@ -#ifndef Py_FLOATOBJECT_H -#define Py_FLOATOBJECT_H -#ifdef __cplusplus -extern "C" { -#endif - /*********************************************************** Copyright (c) 2000, BeOpen.com. Copyright (c) 1995-2000, Corporation for National Research Initiatives. @@ -20,18 +14,24 @@ 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; + 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 Py_PROTO((PyObject*, char**)); -extern DL_IMPORT(PyObject *) PyFloat_FromDouble Py_PROTO((double)); -extern DL_IMPORT(double) PyFloat_AsDouble Py_PROTO((PyObject *)); +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)
