[vorbis-dev] alloca() problem with CodeWarrior

Brendan Dowling crypt at phatnoise.com
Thu Mar 14 21:41:42 PST 2002



On Thu, Mar 14, 2002 at 10:28:31PM -0600, Chris Hanson wrote:
> At 4:52 PM -0800 3/14/02, Brian Hook wrote:
> > > I vote against.  People having trouble with alloca() can
> >> always use one of the portable C implementations of it (like
> >> the one in libiberty, for example).
> >
> >Why not include a portable implementation with Ogg Vorbis?  That would
> >seem to solve all the problems.
> 
> I'll go a step further and suggest sticking to core ANSI C when 
> you're trying to write a portable library in C.  That means using 
> malloc() and free() -- or better, callbacks supplied by the user of 
> the library -- rather than the nonstandard alloca() for memory 
> management.
> 

I wholeheartedly agree.  Why make things hard for lots of people.  
If you're writing software that you'd like other people to be able
to use, then you have to write to the common denominator.  

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list