Skip to content

Reworked memory allocation and compiler warnings #57

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

Closed

Conversation

stawiski
Copy link

@stawiski stawiski commented Oct 8, 2019

My work as per our discussion under #56

…EMORY define.

Added memory allocation error propagation for both static and dynamic memory allocation.
Fixed all warnings under IAR ARM32 and MSVC compilers.
@mortie
Copy link
Contributor

mortie commented Oct 12, 2020

I wonder, maybe a simple way to drop in a custom malloc and free, in addition to handling malloc returning NULL, would be better? You could then make an allocator which just gives memory from a pre-allocated buffer and returns NULL when out of space in that buffer. It would certainly keep tinyexpr much simpler.

@mortie mortie mentioned this pull request Oct 13, 2020
@stawiski stawiski closed this Mar 23, 2023
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.

2 participants