aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/LuaSL/LuaSL_main.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-01-17 17:03:56 +1000
committerDavid Walter Seikel2016-01-17 17:03:56 +1000
commit4e2030607818d83b4e5987df2d889f64f8dce3b3 (patch)
tree370625391b847bed4fa05c888448d1b9a18895b6 /src/LuaSL/LuaSL_main.c
parentBunch of debuggingnesses. (diff)
downloadSledjHamr-4e2030607818d83b4e5987df2d889f64f8dce3b3.zip
SledjHamr-4e2030607818d83b4e5987df2d889f64f8dce3b3.tar.gz
SledjHamr-4e2030607818d83b4e5987df2d889f64f8dce3b3.tar.bz2
SledjHamr-4e2030607818d83b4e5987df2d889f64f8dce3b3.tar.xz
Unify the message sending code a bit.
Diffstat (limited to 'src/LuaSL/LuaSL_main.c')
-rw-r--r--src/LuaSL/LuaSL_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/LuaSL/LuaSL_main.c b/src/LuaSL/LuaSL_main.c
index f8931e6..664cdd1 100644
--- a/src/LuaSL/LuaSL_main.c
+++ b/src/LuaSL/LuaSL_main.c
@@ -168,7 +168,7 @@ void send2server(script *me, const char *message)
168 else 168 else
169 { 169 {
170 takeScript(me); 170 takeScript(me);
171 sendBack(me->client, me->SID, message); 171 send2(me->client, me->SID, message);
172 releaseScript(me); 172 releaseScript(me);
173 } 173 }
174} 174}
@@ -181,9 +181,9 @@ static void _compileCb(LuaCompiler *compiler)
181 { 181 {
182#if COMPILE_OUTPUT 182#if COMPILE_OUTPUT
183 if (message->type) 183 if (message->type)
184 sendBack(compiler->client, compiler->SID, "compilerError(%d,%d,%s)", message->line, message->column, message->message); 184 send2(compiler->client, compiler->SID, "compilerError(%d,%d,%s)", message->line, message->column, message->message);
185 else 185 else
186 sendBack(compiler->client, compiler->SID, "compilerWarning(%d,%d,%s)", message->line, message->column, message->message); 186 send2(compiler->client, compiler->SID, "compilerWarning(%d,%d,%s)", message->line, message->column, message->message);
187#endif 187#endif
188 eina_clist_remove(&(message->node)); 188 eina_clist_remove(&(message->node));
189 free(message); 189 free(message);
@@ -191,9 +191,9 @@ static void _compileCb(LuaCompiler *compiler)
191 191
192//PD("Compiled %s, bug count %d", compiler->file, compiler->bugCount); 192//PD("Compiled %s, bug count %d", compiler->file, compiler->bugCount);
193 if (0 == compiler->bugCount) 193 if (0 == compiler->bugCount)
194 sendBack(compiler->client, compiler->SID, "compiled(true)"); 194 send2(compiler->client, compiler->SID, "compiled(true)");
195 else 195 else
196 sendBack(compiler->client, compiler->SID, "compiled(false)"); 196 send2(compiler->client, compiler->SID, "compiled(false)");
197} 197}
198 198
199static void _compileCbSingle(LuaCompiler *compiler) 199static void _compileCbSingle(LuaCompiler *compiler)