Page 1 of 1

No alloca.h

Posted: Wed Nov 25, 2015 6:49 pm
by igorgatis
Turns out the platform I'm porting micropython for does not provide alloca.h. I did some research and best reference I could find was this one ftp://ftp.dante.de/tex-archive/fonts/ut ... f/alloca.c

(the only change I made was to use malloc instead of xmalloc.)

Any chance that is going to work?

Re: No alloca.h

Posted: Wed Nov 25, 2015 9:05 pm
by dhylands
According to: http://www.delorie.com/djgpp/doc/libc/ (more specifically http://www.delorie.com/djgpp/doc/libc/libc_44.html) alloca is defined in stdlib.h

Re: No alloca.h

Posted: Wed Nov 25, 2015 9:26 pm
by pfalcon

Re: No alloca.h

Posted: Wed Nov 25, 2015 11:10 pm
by igorgatis
Great. Thanks a lot.