-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Protect multi-line macros expansions in _test*.c
files
#120674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
type-feature
A feature request or enhancement
Comments
vstinner
pushed a commit
that referenced
this issue
Jun 18, 2024
…dule.c (#120675) Add do { ... } while (0) pattern.
Fixed by 7c5da94. |
_test*.c
files_test*.c
files
picnixz
added a commit
to picnixz/cpython
that referenced
this issue
Jun 19, 2024
…capimodule.c (python#120675) Add do { ... } while (0) pattern.
mrahtz
pushed a commit
to mrahtz/cpython
that referenced
this issue
Jun 30, 2024
…capimodule.c (python#120675) Add do { ... } while (0) pattern.
noahbkim
pushed a commit
to hudson-trading/cpython
that referenced
this issue
Jul 11, 2024
…capimodule.c (python#120675) Add do { ... } while (0) pattern.
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
…capimodule.c (python#120675) Add do { ... } while (0) pattern.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
In
Modules/_testbuffer.c
andModules/_testcapimodule.c
, there are some expansions that are not protected, although their usage is correct.This issue is in continuation with #119981 (comment) and #120017. There are other places where macro expansions are not protected, so I'll work on that when I've some free time (those PRs are quite easy to review and to implement IMO).
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
Modules/_testbuffer.c
andModules/_testcapimodule.c
#120675The text was updated successfully, but these errors were encountered: