Skip to content

Add ability to control level of legacy support, and drop support for versions v01-v03#600

Merged
Cyan4973 merged 3 commits into
facebook:devfrom
sean-purcell:legacy
Mar 14, 2017
Merged

Add ability to control level of legacy support, and drop support for versions v01-v03#600
Cyan4973 merged 3 commits into
facebook:devfrom
sean-purcell:legacy

Conversation

@sean-purcell

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread lib/legacy/zstd_legacy.h Outdated
#include "zstd_v06.h"
#include "zstd_v07.h"

#ifndef ZSTD_LEGACY_SUPPORT

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another use case to properly support is if ZSTD_LEGACY_SUPPORT is defined with value 0.
This is up to now supported, and means "no legacy support".

But in proposed code, it seems it would mean the otherwise, supporting all legacy versions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, good point. In practice this wouldn't affect much, as all the locations that include zstd_legacy.h check if ZSTD_LEGACY_SUPPORT == 0 first, but I'll add a check here just to be sure.

@Cyan4973

Copy link
Copy Markdown
Contributor

great patch !

@Cyan4973 Cyan4973 merged commit 20f9c70 into facebook:dev Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants