[vorbis-dev] alloca() problem with CodeWarrior
Segher Boessenkool
segher at chello.nl
Thu Mar 14 17:05:05 PST 2002
Brian Hook wrote:
>
> > A lot of things are implemented incorrectly by compilers.
>
> True, and working around them is part of the art of writing portable
> software.
Not really. If a compiler is buggy, the user should just use a newer
version. Only if *no* working compiler for a specific platform
exists, should you try to work around it. All this IMHO, of course.
> > 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?
No-one needed it yet, it seems; at least no-one asked for it, to the
best of my knowledge.
> That would seem to solve all the problems.
No it won't. It's quite hard to detect whether you have exactly that
specific version of CW that's buggy, etc. It *is* easy to detect whether
alloca() is available at all, and whether to include <alloca.h>, but that's
a different problem.
<p>Segher
<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