python-2.7.6/include/intobject.h Source File
Go to the documentation of this file.
17 #ifndef Py_INTOBJECT_H
18 #define Py_INTOBJECT_H
30 #define PyInt_Check(op) \
31 PyType_FastSubclass((op)->ob_type, Py_TPFLAGS_INT_SUBCLASS)
32 #define PyInt_CheckExact(op) ((op)->ob_type == &PyInt_Type)
35 #ifdef Py_USING_UNICODE
42 PyAPI_FUNC(Py_ssize_t) PyInt_AsSsize_t(PyObject *);
44 PyAPI_FUNC(
unsigned long) PyInt_AsUnsignedLongMask(PyObject *);
52 #define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival)
60 PyAPI_FUNC(
unsigned long) PyOS_strtoul(
char *,
char **,
int);
61 PyAPI_FUNC(
long) PyOS_strtol(
char *,
char **,
int);
char Py_ssize_t format_spec_len
PyObject_HEAD long ob_ival
PyAPI_FUNC(PyObject *) PyInt_FromString(char *
PyAPI_DATA(PyTypeObject) PyInt_Type