lua-users home
lua-l archive

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

On Wed, Sep 19, 2007 at 08:17:42PM +0100, Tony Finch wrote:
> Lua's expected realloc() semantics are very slightly more restricted than
> what POSIX allows. See
that's Lua's expected lua_Alloc semantics.

The standard l_alloc as of lauxlib.c calls free whenever size is 0,
posixly correct avoiding any assumptions on realloc(NULL, 0) behaviour.