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/longobject.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/longobject.h')
-rw-r--r-- | Include/longobject.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Include/longobject.h b/Include/longobject.h index 83daa34..bc6a7fe 100644 --- a/Include/longobject.h +++ b/Include/longobject.h @@ -30,19 +30,19 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Long (arbitrary precision) integer object interface */ -typedef struct _longobject longobject; /* Revealed in longintrepr.h */ +typedef struct _longobject PyLongObject; /* Revealed in longintrepr.h */ -extern DL_IMPORT typeobject Longtype; +extern DL_IMPORT PyTypeObject PyLong_Type; -#define is_longobject(op) ((op)->ob_type == &Longtype) +#define PyLong_Check(op) ((op)->ob_type == &PyLong_Type) -extern object *newlongobject PROTO((long)); -extern object *dnewlongobject PROTO((double)); -extern long getlongvalue PROTO((object *)); -extern double dgetlongvalue PROTO((object *)); +extern PyObject *PyLong_FromLong Py_PROTO((long)); +extern PyObject *PyLong_FromDouble Py_PROTO((double)); +extern long PyLong_AsLong Py_PROTO((PyObject *)); +extern double PyLong_AsDouble Py_PROTO((PyObject *)); -object *long_scan PROTO((char *, int)); -object *long_escan PROTO((char *, char **, int)); +PyObject *PyLong_FromString Py_PROTO((char *, int)); +PyObject *long_escan Py_PROTO((char *, char **, int)); #ifdef __cplusplus } |