-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-132983: Remove pyzstd in identifiers #133535
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
base: main
Are you sure you want to change the base?
Conversation
Thanks @emmatyping for the explanation about the context, pinging you for review as suggested 🤗 |
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.
Looks good! Just want to make sure we make these static since they are local to their translation unit (file).
@@ -26,8 +26,8 @@ class _zstd.ZstdCompressor "ZstdCompressor *" "clinic_state()->ZstdCompressor_ty | |||
#define ZstdCompressor_CAST(op) ((ZstdCompressor *)op) | |||
|
|||
int |
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.
int | |
static int |
I believe these should have static linkage to keep this scoped to this translation unit.
@@ -198,7 +198,7 @@ _get_CDict(ZstdDict *self, int compressionLevel) | |||
} | |||
|
|||
int |
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.
int | |
static int |
See above about static linkage.
@@ -62,7 +62,7 @@ _get_DDict(ZstdDict *self) | |||
|
|||
/* Set decompression parameters to decompression context */ | |||
int |
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.
int | |
static int |
See above about static linkage.
@@ -121,7 +121,7 @@ _PyZstd_set_d_parameters(ZstdDecompressor *self, PyObject *options) | |||
|
|||
/* Load dictionary or prefix to decompression context */ | |||
int |
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.
int | |
static int |
See above about static linkage.
The
_PyZstd_xxx
extern functions were leftover artifacts of the move from pyzstd to cpython.I have renamed them to the
_zstd_xxx
convention used for private functions.