Re: [Flac-dev] include/share/alloc.h

2007-09-11 Thread Erik de Castro Lopo
Josh Coalson wrote: > yes. I would use inline except I thought it is only since C99 (not > available in C89), so I'm planning to do the same odious hackery > that's everywhere else. Well it is the year 2007 and I for one reckon its time fully embrace a standard that is 8 years old :-). It does

Re: [Flac-dev] include/share/alloc.h

2007-09-11 Thread Josh Coalson
--- Erik de Castro Lopo <[EMAIL PROTECTED]> wrote: > Josh, > > I noticed the recent addition of the above file. In that file you > have > things like: > > static void *safe_malloc_(size_t size) > { > /* malloc(0) is undefined; FLAC src convention is to always > allocate */ >

[Flac-dev] include/share/alloc.h

2007-09-11 Thread Erik de Castro Lopo
Josh, I noticed the recent addition of the above file. In that file you have things like: static void *safe_malloc_(size_t size) { /* malloc(0) is undefined; FLAC src convention is to always allocate */ if(!size) size++; return malloc(size); } Did