Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/python2....
File: intobject.h
[0] Fix | Delete
/* Integer object interface */
[1] Fix | Delete
[2] Fix | Delete
/*
[3] Fix | Delete
PyIntObject represents a (long) integer. This is an immutable object;
[4] Fix | Delete
an integer cannot change its value after creation.
[5] Fix | Delete
[6] Fix | Delete
There are functions to create new integer objects, to test an object
[7] Fix | Delete
for integer-ness, and to get the integer value. The latter functions
[8] Fix | Delete
returns -1 and sets errno to EBADF if the object is not an PyIntObject.
[9] Fix | Delete
None of the functions should be applied to nil objects.
[10] Fix | Delete
[11] Fix | Delete
The type PyIntObject is (unfortunately) exposed here so we can declare
[12] Fix | Delete
_Py_TrueStruct and _Py_ZeroStruct in boolobject.h; don't use this.
[13] Fix | Delete
*/
[14] Fix | Delete
[15] Fix | Delete
#ifndef Py_INTOBJECT_H
[16] Fix | Delete
#define Py_INTOBJECT_H
[17] Fix | Delete
#ifdef __cplusplus
[18] Fix | Delete
extern "C" {
[19] Fix | Delete
#endif
[20] Fix | Delete
[21] Fix | Delete
typedef struct {
[22] Fix | Delete
PyObject_HEAD
[23] Fix | Delete
long ob_ival;
[24] Fix | Delete
} PyIntObject;
[25] Fix | Delete
[26] Fix | Delete
PyAPI_DATA(PyTypeObject) PyInt_Type;
[27] Fix | Delete
[28] Fix | Delete
#define PyInt_Check(op) \
[29] Fix | Delete
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_INT_SUBCLASS)
[30] Fix | Delete
#define PyInt_CheckExact(op) (Py_TYPE(op) == &PyInt_Type)
[31] Fix | Delete
[32] Fix | Delete
#define _PyAnyInt_Check(op) (PyInt_Check(op) || PyLong_Check(op))
[33] Fix | Delete
#define _PyAnyInt_CheckExact(op) (PyInt_CheckExact(op) || PyLong_CheckExact(op))
[34] Fix | Delete
[35] Fix | Delete
PyAPI_FUNC(PyObject *) PyInt_FromString(char*, char**, int);
[36] Fix | Delete
#ifdef Py_USING_UNICODE
[37] Fix | Delete
PyAPI_FUNC(PyObject *) PyInt_FromUnicode(Py_UNICODE*, Py_ssize_t, int);
[38] Fix | Delete
#endif
[39] Fix | Delete
PyAPI_FUNC(PyObject *) PyInt_FromLong(long);
[40] Fix | Delete
PyAPI_FUNC(PyObject *) PyInt_FromSize_t(size_t);
[41] Fix | Delete
PyAPI_FUNC(PyObject *) PyInt_FromSsize_t(Py_ssize_t);
[42] Fix | Delete
PyAPI_FUNC(long) PyInt_AsLong(PyObject *);
[43] Fix | Delete
PyAPI_FUNC(Py_ssize_t) PyInt_AsSsize_t(PyObject *);
[44] Fix | Delete
PyAPI_FUNC(int) _PyInt_AsInt(PyObject *);
[45] Fix | Delete
PyAPI_FUNC(unsigned long) PyInt_AsUnsignedLongMask(PyObject *);
[46] Fix | Delete
#ifdef HAVE_LONG_LONG
[47] Fix | Delete
PyAPI_FUNC(unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);
[48] Fix | Delete
#endif
[49] Fix | Delete
[50] Fix | Delete
PyAPI_FUNC(long) PyInt_GetMax(void);
[51] Fix | Delete
[52] Fix | Delete
/* Macro, trading safety for speed */
[53] Fix | Delete
#define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival)
[54] Fix | Delete
[55] Fix | Delete
/* These aren't really part of the Int object, but they're handy; the protos
[56] Fix | Delete
* are necessary for systems that need the magic of PyAPI_FUNC and that want
[57] Fix | Delete
* to have stropmodule as a dynamically loaded module instead of building it
[58] Fix | Delete
* into the main Python shared library/DLL. Guido thinks I'm weird for
[59] Fix | Delete
* building it this way. :-) [cjh]
[60] Fix | Delete
*/
[61] Fix | Delete
PyAPI_FUNC(unsigned long) PyOS_strtoul(char *, char **, int);
[62] Fix | Delete
PyAPI_FUNC(long) PyOS_strtol(char *, char **, int);
[63] Fix | Delete
[64] Fix | Delete
/* free list api */
[65] Fix | Delete
PyAPI_FUNC(int) PyInt_ClearFreeList(void);
[66] Fix | Delete
[67] Fix | Delete
/* Convert an integer to the given base. Returns a string.
[68] Fix | Delete
If base is 2, 8 or 16, add the proper prefix '0b', '0o' or '0x'.
[69] Fix | Delete
If newstyle is zero, then use the pre-2.6 behavior of octal having
[70] Fix | Delete
a leading "0" */
[71] Fix | Delete
PyAPI_FUNC(PyObject*) _PyInt_Format(PyIntObject* v, int base, int newstyle);
[72] Fix | Delete
[73] Fix | Delete
/* Format the object based on the format_spec, as defined in PEP 3101
[74] Fix | Delete
(Advanced String Formatting). */
[75] Fix | Delete
PyAPI_FUNC(PyObject *) _PyInt_FormatAdvanced(PyObject *obj,
[76] Fix | Delete
char *format_spec,
[77] Fix | Delete
Py_ssize_t format_spec_len);
[78] Fix | Delete
[79] Fix | Delete
PyAPI_FUNC(void) _PyInt_DebugMallocStats(FILE *out);
[80] Fix | Delete
[81] Fix | Delete
#ifdef __cplusplus
[82] Fix | Delete
}
[83] Fix | Delete
#endif
[84] Fix | Delete
#endif /* !Py_INTOBJECT_H */
[85] Fix | Delete
[86] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function