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. --- src/GuiLua/GuiLua.c | 3 +-- src/purkle/purkle.c | 9 +++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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