From 10228595e8c234db03bc860cbb93ae7232c6ccca Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 14 Aug 2014 08:59:39 +1000 Subject: Use the new message saving stuff in the parser as well. --- src/LuaSL/LuaSL_compile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/LuaSL/LuaSL_compile.c') diff --git a/src/LuaSL/LuaSL_compile.c b/src/LuaSL/LuaSL_compile.c index b2ae841..4764855 100644 --- a/src/LuaSL/LuaSL_compile.c +++ b/src/LuaSL/LuaSL_compile.c @@ -1,6 +1,5 @@ #include "LuaSL.h" -#include "SledjHamr.h" /* TODO - problem de jour */ @@ -223,7 +222,7 @@ LSL_Script constants; int lowestToken = 999999; -static void finishMessage(LuaCompile *compiler, compileMessage *message, int type, int column, int line) +void finishMessage(LuaCompile *compiler, compileMessage *message, int type, int column, int line) { message->type = type; message->column = column; @@ -2318,7 +2317,7 @@ void compileLSL(LuaCompiler *compiler) { // sendBack(lcompiler->compiler->client, lcompiler->compiler->SID, "compilerError(%d,%d,NOT FOUND function %s called)", call->call->line, call->call->column, call->call->value.stringValue); finishMessage(lcompiler->compiler, addMessage(&(lcompiler->compiler->messages), sizeof(compileMessage), - "NOT FOUND function %s called)", call->call->value.stringValue), + "NOT FOUND function %s called", call->call->value.stringValue), 1, call->call->column, call->call->line); } } -- cgit v1.1