]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.10/Include/intobject.h
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Include / intobject.h
diff --git a/AppPkg/Applications/Python/Python-2.7.10/Include/intobject.h b/AppPkg/Applications/Python/Python-2.7.10/Include/intobject.h
deleted file mode 100644 (file)
index b286ec6..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-\r
-/* Integer object interface */\r
-\r
-/*\r
-PyIntObject represents a (long) integer.  This is an immutable object;\r
-an integer cannot change its value after creation.\r
-\r
-There are functions to create new integer objects, to test an object\r
-for integer-ness, and to get the integer value.  The latter functions\r
-returns -1 and sets errno to EBADF if the object is not an PyIntObject.\r
-None of the functions should be applied to nil objects.\r
-\r
-The type PyIntObject is (unfortunately) exposed here so we can declare\r
-_Py_TrueStruct and _Py_ZeroStruct in boolobject.h; don't use this.\r
-*/\r
-\r
-#ifndef Py_INTOBJECT_H\r
-#define Py_INTOBJECT_H\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
-typedef struct {\r
-    PyObject_HEAD\r
-    long ob_ival;\r
-} PyIntObject;\r
-\r
-PyAPI_DATA(PyTypeObject) PyInt_Type;\r
-\r
-#define PyInt_Check(op) \\r
-                PyType_FastSubclass((op)->ob_type, Py_TPFLAGS_INT_SUBCLASS)\r
-#define PyInt_CheckExact(op) ((op)->ob_type == &PyInt_Type)\r
-\r
-PyAPI_FUNC(PyObject *) PyInt_FromString(char*, char**, int);\r
-#ifdef Py_USING_UNICODE\r
-PyAPI_FUNC(PyObject *) PyInt_FromUnicode(Py_UNICODE*, Py_ssize_t, int);\r
-#endif\r
-PyAPI_FUNC(PyObject *) PyInt_FromLong(long);\r
-PyAPI_FUNC(PyObject *) PyInt_FromSize_t(size_t);\r
-PyAPI_FUNC(PyObject *) PyInt_FromSsize_t(Py_ssize_t);\r
-PyAPI_FUNC(long) PyInt_AsLong(PyObject *);\r
-PyAPI_FUNC(Py_ssize_t) PyInt_AsSsize_t(PyObject *);\r
-PyAPI_FUNC(int) _PyInt_AsInt(PyObject *);\r
-PyAPI_FUNC(unsigned long) PyInt_AsUnsignedLongMask(PyObject *);\r
-#ifdef HAVE_LONG_LONG\r
-PyAPI_FUNC(unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);\r
-#endif\r
-\r
-PyAPI_FUNC(long) PyInt_GetMax(void);\r
-\r
-/* Macro, trading safety for speed */\r
-#define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival)\r
-\r
-/* These aren't really part of the Int object, but they're handy; the protos\r
- * are necessary for systems that need the magic of PyAPI_FUNC and that want\r
- * to have stropmodule as a dynamically loaded module instead of building it\r
- * into the main Python shared library/DLL.  Guido thinks I'm weird for\r
- * building it this way.  :-)  [cjh]\r
- */\r
-PyAPI_FUNC(unsigned long) PyOS_strtoul(char *, char **, int);\r
-PyAPI_FUNC(long) PyOS_strtol(char *, char **, int);\r
-\r
-/* free list api */\r
-PyAPI_FUNC(int) PyInt_ClearFreeList(void);\r
-\r
-/* Convert an integer to the given base.  Returns a string.\r
-   If base is 2, 8 or 16, add the proper prefix '0b', '0o' or '0x'.\r
-   If newstyle is zero, then use the pre-2.6 behavior of octal having\r
-   a leading "0" */\r
-PyAPI_FUNC(PyObject*) _PyInt_Format(PyIntObject* v, int base, int newstyle);\r
-\r
-/* Format the object based on the format_spec, as defined in PEP 3101\r
-   (Advanced String Formatting). */\r
-PyAPI_FUNC(PyObject *) _PyInt_FormatAdvanced(PyObject *obj,\r
-                                            char *format_spec,\r
-                                            Py_ssize_t format_spec_len);\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-#endif /* !Py_INTOBJECT_H */\r