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

new build macro XXH_NO_STDLIB #654

Merged
merged 1 commit into from Dec 11, 2021
Merged

new build macro XXH_NO_STDLIB #654

merged 1 commit into from Dec 11, 2021

Conversation

Cyan4973
Copy link
Owner

@Cyan4973 Cyan4973 commented Dec 8, 2021

Useful for embedded / limited environments :
ensures there is no usage / invocation of <stdlib.h> within libxxhash, notably no malloc() nor free(),
at the expense of XXH*_createState() functions, which now always return NULL.
This is only useful in situations where state is always allocated statically,
or only one-shot functions (like XXH64()) are used.

ensures there is no usage / invocation of <stdlib.h> within libxxhash
at the expense of `XXH*_createState()` functions, which always return `NULL`.
This is not a concern when state is allocated statically,
or when one-short functions (like `XXH64()`) are used.
@Cyan4973 Cyan4973 merged commit 7b1fc62 into dev Dec 11, 2021
@easyaspi314
Copy link
Contributor

free may not have a leading underscore. That's only really the case on macOS.

@Cyan4973 Cyan4973 mentioned this pull request Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants