[vorbis-dev] alloca() problem with CodeWarrior
Chris Hanson
cmh at bDistributed.com
Thu Mar 14 20:28:31 PST 2002
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.
-- Chris
--
Chris Hanson | Email: cmh at bDistributed.com
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: cmh at mac.com
--- >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