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

user supplied allocator/printing aka removing stdlib/stdio dependencies #46

Open
nopeslide opened this issue Jul 15, 2020 · 2 comments
Open
Labels
good first issue Good for newcomers

Comments

@nopeslide
Copy link
Collaborator

currently we are using malloc & printf all over the place,
ignoring platform specific implementation.
I would like to replace these calls so users can provide their own allocators and logging functions

@nopeslide nopeslide added the good first issue Good for newcomers label Jul 15, 2020
@alrevuelta
Copy link
Owner

Note that protobuf-c.c also relies on malloc. protobuf_c__allocator can be used to change the alloc and free functions. Can be a good idea to copy the way protobuf-c.c handles allocation.

@nopeslide
Copy link
Collaborator Author

maybe we should provide something like a platform.{c,h} in which we collect all the stdlib/stdio functions we use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants