-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-143253: Add libabigail suppression file for internal types #143254
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # libabigail suppression file for CPython ABI checks | ||
| # | ||
| # Suppress types defined directly in internal headers (pycore_*.h) | ||
| # Regex matches filenames NOT starting with "pycore_", so pycore_* types are suppressed. | ||
| [suppress_type] | ||
| source_location_not_regexp = ^([^p]|p[^y]|py[^c]|pyc[^o]|pyco[^r]|pycor[^e]|pycore[^_]) | ||
| accessed_through = pointer | ||
|
|
||
| # Suppress public typedefs that alias internal structs. | ||
| # These are public names but their underlying struct layout is internal. | ||
| [suppress_type] | ||
| name = PyInterpreterState | ||
| accessed_through = pointer | ||
|
|
||
| [suppress_type] | ||
| name = _PyRuntimeState | ||
| accessed_through = pointer | ||
|
|
||
| [suppress_type] | ||
| name = PyThreadState | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this covers
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is defined in |
||
| accessed_through = pointer | ||
|
|
||
| [suppress_variable] | ||
| name = _PyRuntime | ||
| type_name = _PyRuntimeState | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So weird that there isn't a source_location_regexp and so we have to play these stupid double-negation games.