creationix/lhttp_parser — pull request #2 by devurandom (2012-12-06 18:20:14+00:00)
Title: Lua 5.2 compatibility with fallbacks for Lua 5.1

Use uservalues instead of environments.
This changes behaviour, but achieves the same goal.

Use luaL_newlib/setfuncs instead of luaL_register,
but provide a fallback for Lua 5.1 for the former.