-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Stop using deprecated reset?Stream functions #2504
Conversation
98bc5e2
to
2fdc883
Compare
tests/zstreamtest.c
Outdated
@@ -1071,19 +1071,19 @@ static int basicUnitTests(U32 seed, double compressibility) | |||
} | |||
DISPLAYLEVEL(3, "OK \n"); | |||
|
|||
DISPLAYLEVEL(3, "test%3i : ZSTD_resetDStream() with dictionary : ", testNb++); |
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.
I would recommend not modifying the test functions,
such as the ones included in tests/zstreamtest.c
which scope includes checking static symbols.
2fdc883
to
7d9059a
Compare
I don’t think the FreeBSD failure is related to this patch:
|
Nope, FreeBSD issues are unrelated. |
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.
I'm fine with the proposed changes.
I would wait for @terrelln 's feedback regarding changes in the linux-kernel
and pzstd
projects.
The changes to pzstd looks good. I'd like to revert the changes to linux-kernel. It isn't used in user-space, so it doesn't impact the static symbol usage. And I'd rather keep the implementations in the |
These are replaced by the corresponding context resets. When converting resetCStream, CCtx_setPledgedSrcSize isn't called if the source size is "unknown". This helps reduce the reliance on "static only" symbols, as well as reducing the use of deprecated functions. Signed-off-by: Stephen Kitt <steve@sk2.org>
7d9059a
to
adb5429
Compare
Done, thanks for the review! |
These are replaced by the corresponding context resets. When
converting resetCStream, setPledgedSrcSize isn't called if the source
size is "unknown".
This helps reduce the reliance on "static only" symbols, as well as
reducing the use of deprecated functions.
Signed-off-by: Stephen Kitt steve@sk2.org