| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,8 @@ | |||
| 1 | 1 | /* Sentinel object interface */ | |
| 2 | 2 | ||
| 3 | 3 | #ifndef Py_LIMITED_API | |
| 4 | - #ifndef Py_SENTINELOBJECT_H | ||
| 5 | - #define Py_SENTINELOBJECT_H | ||
| 4 | + #ifndef _Py_SENTINELOBJECT_H | ||
| 5 | + #define _Py_SENTINELOBJECT_H | ||
| 6 | 6 | #ifdef __cplusplus | |
| 7 | 7 | extern "C" { | |
| 8 | 8 | #endif | |
@@ -21,5 +21,5 @@ PyAPI_FUNC(PyObject *) PySentinel_New( | |||
| 21 | 21 | #ifdef __cplusplus | |
| 22 | 22 | } | |
| 23 | 23 | #endif | |
| 24 | - #endif /* !Py_SENTINELOBJECT_H */ | ||
| 24 | + #endif /* !_Py_SENTINELOBJECT_H */ | ||
| 25 | 25 | #endif /* !Py_LIMITED_API */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - #ifndef Py_CPYTHON_SLICEOBJECT_H | ||
| 1 | + #ifndef _Py_CPYTHON_SLICEOBJECT_H | ||
| 2 | 2 | # error "this header file must not be included directly" | |
| 3 | 3 | #endif | |
| 4 | 4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - #ifndef Py_CPYTHON_STRUCTSEQ_H | ||
| 1 | + #ifndef _Py_CPYTHON_STRUCTSEQ_H | ||
| 2 | 2 | # error "this header file must not be included directly" | |
| 3 | 3 | #endif | |
| 4 | 4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | #if defined(_Py_JIT) && defined(__linux__) && defined(__ELF__) | |
| 12 | 12 | # define PY_HAVE_JIT_GDB_UNWIND | |
| 13 | 13 | # if defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && \ | |
| 14 | - defined(HAVE_LIBGCC_EH_FRAME_REGISTRATION) | ||
| 14 | + defined(_Py_HAVE_LIBGCC_EH_FRAME_REGISTRATION) | ||
| 15 | 15 | # define PY_HAVE_JIT_GNU_BACKTRACE_UNWIND | |
| 16 | 16 | # endif | |
| 17 | 17 | #endif | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,12 +11,12 @@ extern "C" { | |||
| 11 | 11 | ||
| 12 | 12 | #include "pycore_pystate.h" | |
| 13 | 13 | ||
| 14 | - #if defined(HAVE_PR_SET_VMA_ANON_NAME) && defined(__linux__) | ||
| 14 | + #if defined(_Py_HAVE_PR_SET_VMA_ANON_NAME) && defined(__linux__) | ||
| 15 | 15 | # include <linux/prctl.h> | |
| 16 | 16 | # include <sys/prctl.h> | |
| 17 | 17 | #endif | |
| 18 | 18 | ||
| 19 | - #if defined(HAVE_PR_SET_VMA_ANON_NAME) && defined(__linux__) | ||
| 19 | + #if defined(_Py_HAVE_PR_SET_VMA_ANON_NAME) && defined(__linux__) | ||
| 20 | 20 | static inline int | |
| 21 | 21 | _PyAnnotateMemoryMap(void *addr, size_t size, const char *name) | |
| 22 | 22 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,9 +45,9 @@ PyAPI_FUNC(Py_ssize_t) PySlice_AdjustIndices(Py_ssize_t length, | |||
| 45 | 45 | #endif | |
| 46 | 46 | ||
| 47 | 47 | #ifndef Py_LIMITED_API | |
| 48 | - # define Py_CPYTHON_SLICEOBJECT_H | ||
| 48 | + # define _Py_CPYTHON_SLICEOBJECT_H | ||
| 49 | 49 | # include "cpython/sliceobject.h" | |
| 50 | - # undef Py_CPYTHON_SLICEOBJECT_H | ||
| 50 | + # undef _Py_CPYTHON_SLICEOBJECT_H | ||
| 51 | 51 | #endif | |
| 52 | 52 | ||
| 53 | 53 | #ifdef __cplusplus | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,9 +29,9 @@ PyAPI_FUNC(void) PyStructSequence_SetItem(PyObject*, Py_ssize_t, PyObject*); | |||
| 29 | 29 | PyAPI_FUNC(PyObject*) PyStructSequence_GetItem(PyObject*, Py_ssize_t); | |
| 30 | 30 | ||
| 31 | 31 | #ifndef Py_LIMITED_API | |
| 32 | - # define Py_CPYTHON_STRUCTSEQ_H | ||
| 32 | + # define _Py_CPYTHON_STRUCTSEQ_H | ||
| 33 | 33 | # include "cpython/structseq.h" | |
| 34 | - # undef Py_CPYTHON_STRUCTSEQ_H | ||
| 34 | + # undef _Py_CPYTHON_STRUCTSEQ_H | ||
| 35 | 35 | #endif | |
| 36 | 36 | ||
| 37 | 37 | #ifdef __cplusplus | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ _Py_hexlify_scalar(const unsigned char *src, Py_UCS1 *dst, Py_ssize_t len) | |||
| 36 | 36 | adds a ton of complication. Who ever really hexes huge data? | |
| 37 | 37 | The 16-64 byte boosts align nicely with md5 - sha512 hexdigests. | |
| 38 | 38 | */ | |
| 39 | - #ifdef HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR | ||
| 39 | + #ifdef _Py_HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR | ||
| 40 | 40 | ||
| 41 | 41 | /* 128-bit vector of 16 unsigned bytes */ | |
| 42 | 42 | typedef unsigned char v16u8 __attribute__((vector_size(16))); | |
@@ -110,7 +110,7 @@ _Py_hexlify_simd(const unsigned char *src, Py_UCS1 *dst, Py_ssize_t len) | |||
| 110 | 110 | _Py_hexlify_scalar(src + i, dst, len - i); | |
| 111 | 111 | } | |
| 112 | 112 | ||
| 113 | - #endif /* HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR */ | ||
| 113 | + #endif /* _Py_HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR */ | ||
| 114 | 114 | ||
| 115 | 115 | static PyObject * | |
| 116 | 116 | _Py_strhex_impl(const char* argbuf, Py_ssize_t arglen, | |
@@ -191,7 +191,7 @@ _Py_strhex_impl(const char* argbuf, Py_ssize_t arglen, | |||
| 191 | 191 | unsigned char c; | |
| 192 | 192 | ||
| 193 | 193 | if (bytes_per_sep_group == 0) { | |
| 194 | - #ifdef HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR | ||
| 194 | + #ifdef _Py_HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR | ||
| 195 | 195 | if (arglen >= 16) { | |
| 196 | 196 | _Py_hexlify_simd((const unsigned char *)argbuf, retbuf, arglen); | |
| 197 | 197 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3863,7 +3863,7 @@ __deregister_frame(0); | |||
| 3863 | 3863 | [ac_cv_have_libgcc_eh_frame_registration=no]) | |
| 3864 | 3864 | ]) | |
| 3865 | 3865 | AS_VAR_IF([ac_cv_have_libgcc_eh_frame_registration], [yes], [ | |
| 3866 | - AC_DEFINE([HAVE_LIBGCC_EH_FRAME_REGISTRATION], [1], | ||
| 3866 | + AC_DEFINE([_Py_HAVE_LIBGCC_EH_FRAME_REGISTRATION], [1], | ||
| 3867 | 3867 | [Define to 1 if libgcc __register_frame and __deregister_frame are linkable.]) | |
| 3868 | 3868 | ]) | |
| 3869 | 3869 | ||
@@ -5163,7 +5163,7 @@ AC_LINK_IFELSE([ | |||
| 5163 | 5163 | ]) | |
| 5164 | 5164 | ||
| 5165 | 5165 | AS_VAR_IF([ac_cv_efficient_builtin_shufflevector], [yes], [ | |
| 5166 | - AC_DEFINE([HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR], [1], | ||
| 5166 | + AC_DEFINE([_Py_HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR], [1], | ||
| 5167 | 5167 | [Define if compiler supports __builtin_shufflevector with 128-bit | |
| 5168 | 5168 | vectors AND the target architecture has native SIMD (not just API | |
| 5169 | 5169 | availability)]) | |
@@ -5788,7 +5788,7 @@ AC_CHECK_DECLS([UT_NAMESIZE], | |||
| 5788 | 5788 | # musl libc redefines struct prctl_mm_map and conflicts with linux/prctl.h | |
| 5789 | 5789 | AS_IF([test "$ac_cv_libc" != musl], [ | |
| 5790 | 5790 | AC_CHECK_DECLS([PR_SET_VMA_ANON_NAME], | |
| 5791 | - [AC_DEFINE([HAVE_PR_SET_VMA_ANON_NAME], [1], | ||
| 5791 | + [AC_DEFINE([_Py_HAVE_PR_SET_VMA_ANON_NAME], [1], | ||
| 5792 | 5792 | [Define if you have the 'PR_SET_VMA_ANON_NAME' constant.])], | |
| 5793 | 5793 | [], | |
| 5794 | 5794 | [@%:@include <linux/prctl.h> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments