From 68dcdcc87277c8aa6d498e3cbefb0de83a0f0c9a Mon Sep 17 00:00:00 2001 From: Hydroque Date: Thu, 1 Jun 2017 18:16:04 -0400 Subject: [PATCH] cleaned up extra variable, organized parameter switch, removed extra printf --- src/console.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/console.c b/src/console.c index f5fcc5c..7b2b2bc 100644 --- a/src/console.c +++ b/src/console.c @@ -17,7 +17,6 @@ #include #include #include -#define CHDIR_FUNC chdir #else #include #include @@ -25,7 +24,6 @@ #include #endif -#include #include #include "lua.h" @@ -129,8 +127,7 @@ static int lua_main_dofile(lua_State* L) { int start_protective_mode(lua_CFunction func, const char* file, char** parameters_argv, int param_len) { lua_pushcclosure(L, func, 0); /* possible out of memory error in 5.2/5.1 */ lua_pushlstring(L, file, strlen(file)); /* possible out of memory error in 5.2/5.1 */ - if(param_len != 0) { - printf("Creating table\n"); + if(param_len != 0) { // load parameters in lua_createtable(L, param_len, 0); int i; for (i=0; i