| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 48a2f8f commit 2aa2b3b
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,7 +141,7 @@ PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); | |||
| 141 | 141 | #endif | |
| 142 | 142 | ||
| 143 | 143 | /* Argument must be a char or an int in [-128, 127] or [0, 255]. */ | |
| 144 | - #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) | ||
| 144 | + #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) | ||
| 145 | 145 | ||
| 146 | 146 | #include "pyfpe.h" | |
| 147 | 147 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,12 +27,12 @@ PyAPI_DATA(PyTypeObject) PyFloat_Type; | |||
| 27 | 27 | #define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN) | |
| 28 | 28 | #endif | |
| 29 | 29 | ||
| 30 | - #define Py_RETURN_INF(sign) do \ | ||
| 31 | - if (copysign(1., sign) == 1.) { \ | ||
| 32 | - return PyFloat_FromDouble(Py_HUGE_VAL); \ | ||
| 33 | - } else { \ | ||
| 34 | - return PyFloat_FromDouble(-Py_HUGE_VAL); \ | ||
| 35 | - } while(0) | ||
| 30 | + #define Py_RETURN_INF(sign) do \ | ||
| 31 | + if (copysign(1., sign) == 1.) { \ | ||
| 32 | + return PyFloat_FromDouble(Py_HUGE_VAL); \ | ||
| 33 | + } else { \ | ||
| 34 | + return PyFloat_FromDouble(-Py_HUGE_VAL); \ | ||
| 35 | + } while(0) | ||
| 36 | 36 | ||
| 37 | 37 | PyAPI_FUNC(double) PyFloat_GetMax(void); | |
| 38 | 38 | PyAPI_FUNC(double) PyFloat_GetMin(void); | |
@@ -113,9 +113,9 @@ PyAPI_FUNC(int) PyFloat_ClearFreeList(void); | |||
| 113 | 113 | /* Format the object based on the format_spec, as defined in PEP 3101 | |
| 114 | 114 | (Advanced String Formatting). */ | |
| 115 | 115 | PyAPI_FUNC(PyObject *) _PyFloat_FormatAdvanced(PyObject *obj, | |
| 116 | - PyObject *format_spec, | ||
| 117 | - Py_ssize_t start, | ||
| 118 | - Py_ssize_t end); | ||
| 116 | + PyObject *format_spec, | ||
| 117 | + Py_ssize_t start, | ||
| 118 | + Py_ssize_t end); | ||
| 119 | 119 | #endif /* Py_LIMITED_API */ | |
| 120 | 120 | ||
| 121 | 121 | #ifdef __cplusplus | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ typedef struct _longobject PyLongObject; /* Revealed in longintrepr.h */ | |||
| 12 | 12 | PyAPI_DATA(PyTypeObject) PyLong_Type; | |
| 13 | 13 | ||
| 14 | 14 | #define PyLong_Check(op) \ | |
| 15 | - PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) | ||
| 15 | + PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) | ||
| 16 | 16 | #define PyLong_CheckExact(op) (Py_TYPE(op) == &PyLong_Type) | |
| 17 | 17 | ||
| 18 | 18 | PyAPI_FUNC(PyObject *) PyLong_FromLong(long); | |
@@ -122,8 +122,8 @@ PyAPI_FUNC(PyObject *) _PyLong_DivmodNear(PyObject *, PyObject *); | |||
| 122 | 122 | enough memory to create the Python long. | |
| 123 | 123 | */ | |
| 124 | 124 | PyAPI_FUNC(PyObject *) _PyLong_FromByteArray( | |
| 125 | - const unsigned char* bytes, size_t n, | ||
| 126 | - int little_endian, int is_signed); | ||
| 125 | + const unsigned char* bytes, size_t n, | ||
| 126 | + int little_endian, int is_signed); | ||
| 127 | 127 | ||
| 128 | 128 | /* _PyLong_AsByteArray: Convert the least-significant 8*n bits of long | |
| 129 | 129 | v to a base-256 integer, stored in array bytes. Normally return 0, | |
@@ -145,8 +145,8 @@ PyAPI_FUNC(PyObject *) _PyLong_FromByteArray( | |||
| 145 | 145 | case, but bytes holds the least-signficant n bytes of the true value. | |
| 146 | 146 | */ | |
| 147 | 147 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v, | |
| 148 | - unsigned char* bytes, size_t n, | ||
| 149 | - int little_endian, int is_signed); | ||
| 148 | + unsigned char* bytes, size_t n, | ||
| 149 | + int little_endian, int is_signed); | ||
| 150 | 150 | ||
| 151 | 151 | ||
| 152 | 152 | /* _PyLong_Format: Convert the long to a string object with given base, | |
@@ -156,9 +156,9 @@ PyAPI_FUNC(PyObject *) _PyLong_Format(PyObject *aa, int base); | |||
| 156 | 156 | /* Format the object based on the format_spec, as defined in PEP 3101 | |
| 157 | 157 | (Advanced String Formatting). */ | |
| 158 | 158 | PyAPI_FUNC(PyObject *) _PyLong_FormatAdvanced(PyObject *obj, | |
| 159 | - PyObject *format_spec, | ||
| 160 | - Py_ssize_t start, | ||
| 161 | - Py_ssize_t end); | ||
| 159 | + PyObject *format_spec, | ||
| 160 | + Py_ssize_t start, | ||
| 161 | + Py_ssize_t end); | ||
| 162 | 162 | #endif /* Py_LIMITED_API */ | |
| 163 | 163 | ||
| 164 | 164 | /* These aren't really part of the long object, but they're handy. The | |
| Back | FazBrowse Home | New Git URL |
0 commit comments