From 4d7e99c343ad9624d03779491ab380ddb97d6c13 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 25 Nov 2021 20:13:49 -0800 Subject: . --- src/lua.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lua.c b/src/lua.c index 9e6dab0..6a12fbf 100644 --- a/src/lua.c +++ b/src/lua.c @@ -19,7 +19,7 @@ #define lua_c #include "lua.h" -#include "lstate.h" +//? #include "lstate.h" #include "lauxlib.h" #include "lualib.h" @@ -476,7 +476,7 @@ static void big_picture_menu (void) { static int is_current_definition(lua_State *L, const char *definition_name, int current_history_array_index, int history_array_location, int history_array_size) { /* Sequentially scan back through history_array until current_history_array_index. * Is there an earlier definition of definition_name? */ - int oldsize = L->top-L->stack; +//? int oldsize = L->top-L->stack; int found = 0; for (int i = history_array_size; i > current_history_array_index; --i) { lua_rawgeti(L, history_array_location, i); @@ -495,11 +495,11 @@ static int is_current_definition(lua_State *L, const char *definition_name, int if (found) break; } - if(oldsize != L->top-L->stack) { - endwin(); - printf("%d %d\n", oldsize, L->top-L->stack); - exit(1); - } +//? if(oldsize != L->top-L->stack) { +//? endwin(); +//? printf("%d %d\n", oldsize, L->top-L->stack); +//? exit(1); +//? } return !found; } -- cgit 1.4.1-2-gfad0