Donate to Creative Commons [was Fwd: Fw: This SpaceX image is free]

2015-05-15 Thread Shlomi Fish
Hi all, please consider donating to Creative Commons. Regards, — Shlomi Fish -- Forwarded message -- From: Shlomi Fish shlo...@shlomifish.org Date: Fri, May 15, 2015 at 10:25 AM Subject: Fw: This SpaceX image is free To: shlo...@gmail.com Begin forwarded message: Date:

Memory pool interface design

2015-05-15 Thread Elazar Leibovich
I'm writing a small C library, that I want to open source. I want them to be usable for embedded environment, where memory allocation must be controlled. Hence, I abstracted away calls to malloc/realloc, and replaced them with struct mem_pool { void *(*allloc)(void *mem_pool, void

Re: Memory pool interface design

2015-05-15 Thread Baruch Even
I would question the need to abstract away the memory allocations of your library compared to everything else. If someone cares enough about it he can replace malloc and free completely to use a different allocation scheme. In most cases I've cared about memory allocations I just wanted none of