Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/python3....
File: pymacro.h
#ifndef Py_PYMACRO_H
[0] Fix | Delete
#define Py_PYMACRO_H
[1] Fix | Delete
[2] Fix | Delete
/* Minimum value between x and y */
[3] Fix | Delete
#define Py_MIN(x, y) (((x) > (y)) ? (y) : (x))
[4] Fix | Delete
[5] Fix | Delete
/* Maximum value between x and y */
[6] Fix | Delete
#define Py_MAX(x, y) (((x) > (y)) ? (x) : (y))
[7] Fix | Delete
[8] Fix | Delete
/* Absolute value of the number x */
[9] Fix | Delete
#define Py_ABS(x) ((x) < 0 ? -(x) : (x))
[10] Fix | Delete
[11] Fix | Delete
#define _Py_XSTRINGIFY(x) #x
[12] Fix | Delete
[13] Fix | Delete
/* Convert the argument to a string. For example, Py_STRINGIFY(123) is replaced
[14] Fix | Delete
with "123" by the preprocessor. Defines are also replaced by their value.
[15] Fix | Delete
For example Py_STRINGIFY(__LINE__) is replaced by the line number, not
[16] Fix | Delete
by "__LINE__". */
[17] Fix | Delete
#define Py_STRINGIFY(x) _Py_XSTRINGIFY(x)
[18] Fix | Delete
[19] Fix | Delete
/* Get the size of a structure member in bytes */
[20] Fix | Delete
#define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
[21] Fix | Delete
[22] Fix | Delete
/* Argument must be a char or an int in [-128, 127] or [0, 255]. */
[23] Fix | Delete
#define Py_CHARMASK(c) ((unsigned char)((c) & 0xff))
[24] Fix | Delete
[25] Fix | Delete
/* Assert a build-time dependency, as an expression.
[26] Fix | Delete
[27] Fix | Delete
Your compile will fail if the condition isn't true, or can't be evaluated
[28] Fix | Delete
by the compiler. This can be used in an expression: its value is 0.
[29] Fix | Delete
[30] Fix | Delete
Example:
[31] Fix | Delete
[32] Fix | Delete
#define foo_to_char(foo) \
[33] Fix | Delete
((char *)(foo) \
[34] Fix | Delete
+ Py_BUILD_ASSERT_EXPR(offsetof(struct foo, string) == 0))
[35] Fix | Delete
[36] Fix | Delete
Written by Rusty Russell, public domain, http://ccodearchive.net/ */
[37] Fix | Delete
#define Py_BUILD_ASSERT_EXPR(cond) \
[38] Fix | Delete
(sizeof(char [1 - 2*!(cond)]) - 1)
[39] Fix | Delete
[40] Fix | Delete
#define Py_BUILD_ASSERT(cond) do { \
[41] Fix | Delete
(void)Py_BUILD_ASSERT_EXPR(cond); \
[42] Fix | Delete
} while(0)
[43] Fix | Delete
[44] Fix | Delete
/* Get the number of elements in a visible array
[45] Fix | Delete
[46] Fix | Delete
This does not work on pointers, or arrays declared as [], or function
[47] Fix | Delete
parameters. With correct compiler support, such usage will cause a build
[48] Fix | Delete
error (see Py_BUILD_ASSERT_EXPR).
[49] Fix | Delete
[50] Fix | Delete
Written by Rusty Russell, public domain, http://ccodearchive.net/
[51] Fix | Delete
[52] Fix | Delete
Requires at GCC 3.1+ */
[53] Fix | Delete
#if (defined(__GNUC__) && !defined(__STRICT_ANSI__) && \
[54] Fix | Delete
(((__GNUC__ == 3) && (__GNU_MINOR__ >= 1)) || (__GNUC__ >= 4)))
[55] Fix | Delete
/* Two gcc extensions.
[56] Fix | Delete
&a[0] degrades to a pointer: a different type from an array */
[57] Fix | Delete
#define Py_ARRAY_LENGTH(array) \
[58] Fix | Delete
(sizeof(array) / sizeof((array)[0]) \
[59] Fix | Delete
+ Py_BUILD_ASSERT_EXPR(!__builtin_types_compatible_p(typeof(array), \
[60] Fix | Delete
typeof(&(array)[0]))))
[61] Fix | Delete
#else
[62] Fix | Delete
#define Py_ARRAY_LENGTH(array) \
[63] Fix | Delete
(sizeof(array) / sizeof((array)[0]))
[64] Fix | Delete
#endif
[65] Fix | Delete
[66] Fix | Delete
[67] Fix | Delete
/* Define macros for inline documentation. */
[68] Fix | Delete
#define PyDoc_VAR(name) static char name[]
[69] Fix | Delete
#define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)
[70] Fix | Delete
#ifdef WITH_DOC_STRINGS
[71] Fix | Delete
#define PyDoc_STR(str) str
[72] Fix | Delete
#else
[73] Fix | Delete
#define PyDoc_STR(str) ""
[74] Fix | Delete
#endif
[75] Fix | Delete
[76] Fix | Delete
/* Below "a" is a power of 2. */
[77] Fix | Delete
/* Round down size "n" to be a multiple of "a". */
[78] Fix | Delete
#define _Py_SIZE_ROUND_DOWN(n, a) ((size_t)(n) & ~(size_t)((a) - 1))
[79] Fix | Delete
/* Round up size "n" to be a multiple of "a". */
[80] Fix | Delete
#define _Py_SIZE_ROUND_UP(n, a) (((size_t)(n) + \
[81] Fix | Delete
(size_t)((a) - 1)) & ~(size_t)((a) - 1))
[82] Fix | Delete
/* Round pointer "p" down to the closest "a"-aligned address <= "p". */
[83] Fix | Delete
#define _Py_ALIGN_DOWN(p, a) ((void *)((uintptr_t)(p) & ~(uintptr_t)((a) - 1)))
[84] Fix | Delete
/* Round pointer "p" up to the closest "a"-aligned address >= "p". */
[85] Fix | Delete
#define _Py_ALIGN_UP(p, a) ((void *)(((uintptr_t)(p) + \
[86] Fix | Delete
(uintptr_t)((a) - 1)) & ~(uintptr_t)((a) - 1)))
[87] Fix | Delete
/* Check if pointer "p" is aligned to "a"-bytes boundary. */
[88] Fix | Delete
#define _Py_IS_ALIGNED(p, a) (!((uintptr_t)(p) & (uintptr_t)((a) - 1)))
[89] Fix | Delete
[90] Fix | Delete
#ifdef __GNUC__
[91] Fix | Delete
#define Py_UNUSED(name) _unused_ ## name __attribute__((unused))
[92] Fix | Delete
#else
[93] Fix | Delete
#define Py_UNUSED(name) _unused_ ## name
[94] Fix | Delete
#endif
[95] Fix | Delete
[96] Fix | Delete
#endif /* Py_PYMACRO_H */
[97] Fix | Delete
[98] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function