kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 13f9921679d05b092668d4ad27cb608ec5df00ca
parent 3e944e106b4cbcbd0a0d9a66ba4cddbc4876e615
Author: Joris Vink <joris@coders.se>
Date:   Wed,  1 Mar 2023 16:35:11 +0100

cleanup

Diffstat:
src/lua.c | 25-------------------------
1 file changed, 0 insertions(+), 25 deletions(-)

diff --git a/src/lua.c b/src/lua.c @@ -67,8 +67,6 @@ static void lua_symbol_resolve(struct lua_symbol *, lua_State **); static int lua_argument_get_bool(lua_State *, const char *); static const char *lua_argument_get_string(lua_State *, const char *); -//static int lua_argument_get_integer(lua_State *, const char *, -// lua_Integer *); struct kore_module_functions kore_lua_module = { .free = lua_module_free, @@ -143,29 +141,6 @@ lua_symbol_resolve(struct lua_symbol *sym, lua_State **L) *L = sym->L; } -#if 0 -static int -lua_argument_get_integer(lua_State *L, const char *field, lua_Integer *ret) -{ - int type; - - lua_pushstring(L, field); - type = lua_gettable(L, -2); - - if (type == LUA_TNIL) { - lua_pop(L, 1); - return (KORE_RESULT_ERROR); - } - - luaL_argcheck(L, type == LUA_TNUMBER, 0, field); - - *ret = lua_tointeger(L, -1); - lua_pop(L, 1); - - return (KORE_RESULT_OK); -} -#endif - static int lua_argument_get_bool(lua_State *L, const char *field) {