Skip to content
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

Replace constants with enums #7

Closed
wants to merge 8 commits into from
Closed

Replace constants with enums #7

wants to merge 8 commits into from

Conversation

charonn0
Copy link
Owner

This PR replaces the various constants defined by zlib into enumerations. This clarifies the purpose of these values by organizing related constants together. This also allows us to rearrange the order in which these are used (e.g. in ZStream.Create).

This PR reorganizes them so that the Encoding can be specified without also specifying the strategy. As such, this introduces a number of breaking changes.

charonn0 added 8 commits June 13, 2018 00:25
deprecate flush mode constants
deprecate strategy constants
deprecate data type constants
Move the encoding parameter closer to the beginning since it's more important than strategy
@charonn0 charonn0 added the enhancement Improvements that do not change the public API label Jun 18, 2018
@charonn0 charonn0 closed this Jan 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements that do not change the public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant