> To write that allocation function, start by copying the reference > implementation showed in [1]. Also here: http://www.lua.org/source/5.2/lauxlib.c.html#l_alloc