Debian Codegraph @

pypy/module/cpyext/include/longobject.h

raw symbols SCIP
1 #ifndef Py_LONGOBJECT_H
2 #define Py_LONGOBJECT_H
3
4 #include <stdlib.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 /* why does cpython redefine these, and even supply an implementation in mystrtoul.c?
11 PyAPI_FUNC(unsigned long) PyOS_strtoul(const char *, char **, int);
12 PyAPI_FUNC(long) PyOS_strtol(const char *, char **, int);
13 */
14
15 #define PyOS_strtoul strtoul
16 #define PyOS_strtol strtoul
17 #define PyLong_Check(op) \
18 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS)
19 #define PyLong_CheckExact(op) (Py_TYPE(op) == &PyLong_Type)
20
21 #define PyLong_AS_LONG(op) PyLong_AsLong(op)
22
23 #define _PyLong_AsByteArray(v, bytes, n, little_endian, is_signed) \
24 _PyLong_AsByteArrayO((PyObject *)(v), bytes, n, little_endian, is_signed)
25
26 #ifdef __cplusplus
27 }
28 #endif
29 #endif /* !Py_LONGOBJECT_H */