From c1a1d6581d6ab5e4faeac5397fdf2682c9605b8c Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 17 May 2014 07:53:40 +1000 Subject: More debugging removal. --- lib/skang.lua | 4 ++-- src/GuiLua/GuiLua.c | 3 +-- src/purkle/purkle.c | 9 +++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/skang.lua b/lib/skang.lua index d4a9fec..90079ad 100644 --- a/lib/skang.lua +++ b/lib/skang.lua @@ -884,7 +884,7 @@ thingasm = function (names, ...) if args then setfenv(args, parent) thingy.Cwidget = widget(parent.window, args()) -print('\nNO IDEA WHY this does isValid() three times on the action, and the first one being a string.') +--print('\nNO IDEA WHY this does isValid() three times on the action, and the first one being a string.') parent.W[name] = thingy else print("ERROR - " .. err) @@ -1037,7 +1037,7 @@ local aIsValid = function (self, parent) if result then local value = parent[self.names[1] ] -print('NEW ACTION - ' .. self.names[1] .. ' = ' .. value .. ' ' .. type(parent.Cwidget)) +--print('NEW ACTION - ' .. self.names[1] .. ' = ' .. value .. ' ' .. type(parent.Cwidget)) action(parent.Cwidget, value) end return result diff --git a/src/GuiLua/GuiLua.c b/src/GuiLua/GuiLua.c index f2f5a6c..94a0909 100644 --- a/src/GuiLua/GuiLua.c +++ b/src/GuiLua/GuiLua.c @@ -204,7 +204,6 @@ static void _on_click(void *data, Evas_Object *obj, void *event_info EINA_UNUSED _A = lua_gettop(L); if (wid->win->module) { - PD("Setting environment for Lua pcall to %s", wid->win->module); lua_getfield(L, LUA_REGISTRYINDEX, wid->win->module); // Consistancy would be good, just sayin'. @@ -264,7 +263,7 @@ static int action(lua_State *L) pull_lua(L, 2, "$", &action); if (wid && strcmp(wid->magic, "Widget") == 0) { -PD("Setting action : %s\n", action); +//PD("Setting action : %s\n", action); wid->action = strdup(action); } return 0; diff --git a/src/purkle/purkle.c b/src/purkle/purkle.c index 01053fe..62f78a2 100644 --- a/src/purkle/purkle.c +++ b/src/purkle/purkle.c @@ -56,14 +56,15 @@ static int say(lua_State *L) char *name = "", *id = NULL, *text = NULL, buf[PATH_MAX]; int channel; -printf("PURKLE.SAY .....\n"); // TODO - Should include origin and distance? pull_lua(L, 1, "%channel $name $id $text", &channel, &name, &id, &text); if (id && text) { - snprintf(buf, sizeof(buf), "events.listen(%d, %s, %s, %s)", channel, name, id, text); -printf("PURKLE.SAY -%s.%s\n", id, buf); - if (server) sendForth(server, id, buf); + snprintf(buf, sizeof(buf), "events.listen(%d, '%s', '%s', '%s')", channel, name, id, text); + if (server) + sendForth(server, id, buf); + else + printf("PURKLE NOT SAY, no where to send %s", buf); } return 0; } -- cgit v1.1