mascarenhas/alien — pull request #14 by rrthomas (2012-06-11 19:29:16+00:00)
Title: Make buffers reallocable

In order to make this possible, all buffers now have to be allocated
indirectly (because a userdata cannot be resized).

In order to make this work, the struct library had to be made aware of
buffers; the simplest way was to merge it into the core library.

All documentation and build system files (including Windows makefiles)
have been updated accordingly.

The name "realloc" has been chosen to emphasise the direct connection with the underlying Lua allocator function; in particular, supplying a length/size of zero frees the given array/buffer; however, I would be happy to change the name if you think "resize" is better, for example.