environ: rename local functions

This commit is contained in:
Jeremy Baxter 2024-06-12 10:24:26 +12:00
parent 9267342649
commit b3f6d52152

View file

@ -38,7 +38,7 @@ environ["MYVAR"] = 1
* Returns the value of the given environment variable. * Returns the value of the given environment variable.
*/ */
static int static int
environ_index(lua_State *L) environ__index(lua_State *L)
{ {
const char *variable; /* parameter 2 (string) */ const char *variable; /* parameter 2 (string) */
char *ret; char *ret;
@ -58,7 +58,7 @@ environ_index(lua_State *L)
* Sets the value of the given environment variable. * Sets the value of the given environment variable.
*/ */
static int static int
environ_newindex(lua_State *L) environ__newindex(lua_State *L)
{ {
int ret; int ret;
const char *variable; /* parameter 2 (string) */ const char *variable; /* parameter 2 (string) */
@ -97,8 +97,8 @@ environ_newindex(lua_State *L)
/* clang-format off */ /* clang-format off */
static const luaL_Reg mt[] = { static const luaL_Reg mt[] = {
{"__index", environ_index}, {"__index", environ__index},
{"__newindex", environ_newindex}, {"__newindex", environ__newindex},
{NULL, NULL} {NULL, NULL}
}; };