lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Probably a stupid question, but I'm tracking down an issue with
the Lua interpreter crashing on me in a small (ARM7) target
processor.

WRT memory allocation, does Lua expect memory from malloc() or
realloc() to be set to 0?

It turns out that realloc() is the only library function that is
called, and my implementation of realloc() calls malloc() if the
pointer to the original data is NULL.

Cheers, Ralph