This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9916 - bufalloc-like memory allocator for use with plugin buffer
Attached to Project:
Rockbox
Opened by Andrew Mahone (Unhelpful) - Monday, 16 February 2009, 21:28 GMT+2
Last edited by Andrew Mahone (Unhelpful) - Wednesday, 04 March 2009, 22:11 GMT+2
Opened by Andrew Mahone (Unhelpful) - Monday, 16 February 2009, 21:28 GMT+2
Last edited by Andrew Mahone (Unhelpful) - Wednesday, 04 March 2009, 22:11 GMT+2
|
DetailsThis patch adds a set of dynamic allocation routines to the pluginlib, with an API similar to rb->bufalloc.
cons: not malloc-compatible pros: can compact easy replacement for plugins using bufalloc can be initialized to allocate from plugin buffer, or any other chunk of contiguous memory |
Closed by Andrew Mahone (Unhelpful)
Wednesday, 04 March 2009, 22:11 GMT+2
Reason for closing: Accepted
Additional comments about closing: commited as r20202
Wednesday, 04 March 2009, 22:11 GMT+2
Reason for closing: Accepted
Additional comments about closing: commited as r20202
Couldn't that struct either be declared local to buffer_alloc.c (and hence remove the need for those macros and the extra parameter), or openly declared in the plugin using buffer_alloc.c ? Either of those would be cleaner IMO (unless I'm missing a reason for it to be the way it is - I've only looked at the patch briefly).