[vorbis-dev] LccWin32 and OGG

Paul Martin pm at nowster.zetnet.co.uk
Mon Feb 17 11:04:36 PST 2003

On Mon, Feb 17, 2003 at 06:08:50PM +0100, alphasnd at free.fr wrote:

>   - I got tons of casts error, as Lcc seems to be more stricts about them
> than other compiler:
>    ex:  float *lpc=alloca(order*sizeof(*lpc));
>         will produce a cast error (not a warning) and I have to change to:
>         float *lpc=(float *)alloca(order*sizeof(*lpc));
>   The same goes for int* etc.. I've looked in the lcc definition file to see
> how is declared alloca() and it's like this:
> void * _alloca(size_t);
> #define alloca _alloca

Isn't that behaviour a violation of some C standard? "void *" is
supposed to be type compatible with all other pointer types.

Paul Martin <pm at zetnet.net> (work)
  <pm at nowster.zetnet.co.uk> (home)
--- >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