diff options
author | Guido van Rossum <guido@python.org> | 1995-01-12 11:45:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-12 11:45:45 (GMT) |
commit | caa63808861d4e92d4dc1005fc01de0f2e4a8fd0 (patch) | |
tree | 3771531169ab510aca9b69cdc4d9de2b5c8810c4 /Include/floatobject.h | |
parent | 94390ec2a6ea5acbea9dead528ce067c396a0301 (diff) | |
download | cpython-caa63808861d4e92d4dc1005fc01de0f2e4a8fd0.zip cpython-caa63808861d4e92d4dc1005fc01de0f2e4a8fd0.tar.gz cpython-caa63808861d4e92d4dc1005fc01de0f2e4a8fd0.tar.bz2 |
The great renaming, phase two: all header files have been updated to
use the new names exclusively, and the linker will see the new names.
Files that import "Python.h" also only see the new names. Files that
import "allobjects.h" will continue to be able to use the old names,
due to the inclusion (in allobjects.h) of "rename2.h".
Diffstat (limited to 'Include/floatobject.h')
-rw-r--r-- | Include/floatobject.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Include/floatobject.h b/Include/floatobject.h index 5e5a2f0..2feb0bc 100644 --- a/Include/floatobject.h +++ b/Include/floatobject.h @@ -31,23 +31,23 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Float object interface */ /* -floatobject represents a (double precision) floating point number. +PyFloatObject represents a (double precision) floating point number. */ typedef struct { - OB_HEAD + PyObject_HEAD double ob_fval; -} floatobject; +} PyFloatObject; -extern DL_IMPORT typeobject Floattype; +extern DL_IMPORT PyTypeObject PyFloat_Type; -#define is_floatobject(op) ((op)->ob_type == &Floattype) +#define PyFloat_Check(op) ((op)->ob_type == &PyFloat_Type) -extern object *newfloatobject PROTO((double)); -extern double getfloatvalue PROTO((object *)); +extern PyObject *PyFloat_FromDouble Py_PROTO((double)); +extern double PyFloat_AsDouble Py_PROTO((PyObject *)); /* Macro, trading safety for speed */ -#define GETFLOATVALUE(op) ((op)->ob_fval) +#define PyFloat_AS_DOUBLE(op) ((op)->ob_fval) #ifdef __cplusplus } |