Re: [AD] mode-list updates.]

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 03 Oct 2001, Henrik Stokseth <hstokset@xxxxxxxxxx> wrote:
> On Thursday 04 October 2001 06:02, Henrik Stokseth wrote:
> 
> > What if i provide an
> > al_realloc() which works exactly like libc realloc() just that it's
> > behaviour is guaranteed? in other words: if ptr=NULL -> malloc, if size=0
> > -> free, otherwise call realloc and if failure -> free.
> 
> untested patch attached.

I think it's pretty useful (and will probably get rid of the gotos I
introduced), but make the function part of the internal API.  I
think we're already solving too many problems outside our domain,
let's leave this to someone else ;-)



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/