MINOR: lua: file dedicated to unsafe functions
authorThierry Fournier <tfournier@arpalert.org>
Thu, 21 Jan 2016 08:28:58 +0000 (09:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Feb 2016 10:08:53 +0000 (11:08 +0100)
commitfb0b5467ca9a0b6c33adf2465751b60260c27662
treee6ed9674178542d6855329ded4f56e801ea5e1f2
parent834421c2d0226a567c2692ba52df7b14a6bc4c1d
MINOR: lua: file dedicated to unsafe functions

When Lua executes functions from its API, these can throws an error.
These function must be executed in a special environment which catch
these error, otherwise a critical error (like segfault) can raise.

This patch add a c file called "hlua_fcn.c" which collect all the
Lua/c function needing safe environment for its execution.
Makefile
include/proto/hlua_fcn.h [new file with mode: 0644]
src/hlua.c
src/hlua_fcn.c [new file with mode: 0644]