You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 931322b
Browse filesBrowse the repository at this point in the historyBrowse files
* [3.15] gh-158810: Fix Py_ARRAY_LENGTH() macro on C++ (#159315)
* gh-158810: Fix Py_ARRAY_LENGTH() macro on C++ (#158812)
(cherry picked from commit b2bfbce)
* gh-158810: Use _Py_TYPEOF in Py_ARRAY_LENGTH() (#158838)
Fix the compiler warning "extension used" when building test_cext
with clang.
* test_cext no longer overrides the CC environment variable if it's
already defined.
* test_cext now also logs __STRICT_ANSI__ macro.
(cherry picked from commit 85c03d4)
* Add Py_SETREF/XSETREF tests to test_cext
(cherry picked from commit 152185f)
* Backport Py_CLEAR/Py_SETREF/Py_XSETREF from main
Copy file name to clipboardExpand all lines: Include/pymacro.h
+19-15Lines changed: 19 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -130,23 +130,27 @@
130
130
} while(0)
131
131
#endif
132
132
133
-
/* Get the number of elements in a visible array
134
-
135
-
This does not work on pointers, or arrays declared as [], or function
136
-
parameters. With correct compiler support, such usage will cause a build
137
-
error (see Py_BUILD_ASSERT_EXPR).
138
-
139
-
Written by Rusty Russell, public domain, http://ccodearchive.net/
&a[0] degrades to a pointer: a different type from an array */
133
+
// Get the number of elements in a visible array.
134
+
//
135
+
// This does not work on pointers, or arrays declared as [], or function
136
+
// parameters. With correct compiler support, such usage will cause a build
137
+
// error (see Py_BUILD_ASSERT_EXPR).
138
+
//
139
+
// Written by Rusty Russell, public domain, http://ccodearchive.net/
140
+
//
141
+
// Require GCC 4 (it works on GCC 3.1).
142
+
//
143
+
// Two GCC extensions: &a[0] degrades to a pointer, a different type from an
144
+
// array.
145
+
//
146
+
// gh-158810: Do not use __builtin_types_compatible_p() in strict C ANSI mode
0 commit comments