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

Adjust code around memory allocations #3

Open
elfring opened this issue Jul 7, 2018 · 1 comment
Open

Adjust code around memory allocations #3

elfring opened this issue Jul 7, 2018 · 1 comment

Comments

@elfring
Copy link

elfring commented Jul 7, 2018

The following source code structure is repeated a few times.

…
    …* p = malloc(…);
    assertalloc_ptr(p);
…

How do you think about to combine it into a function like “aco_malloc” (or “aco_calloc”)?

@hnes hnes self-assigned this Jul 7, 2018
@hnes hnes added the Proposal label Jul 7, 2018
@hnes
Copy link
Owner

hnes commented Jul 7, 2018

Thanks Markus for your proposal :D

I would like to add it to the ToDo list and this adjustment will be released with the new API aco_reset in the future v1.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants