aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_compile.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-17 14:05:48 +1000
committerDavid Walter Seikel2012-01-17 14:05:48 +1000
commit67bb592b153cd97ece90f12b106c251ca4d08694 (patch)
treef5a50082e2e0e08050f27f0ab685f599ff8b87d9 /LuaSL/src/LuaSL_compile.c
parentStore the lexer provided length. (diff)
downloadSledjHamr-67bb592b153cd97ece90f12b106c251ca4d08694.zip
SledjHamr-67bb592b153cd97ece90f12b106c251ca4d08694.tar.gz
SledjHamr-67bb592b153cd97ece90f12b106c251ca4d08694.tar.bz2
SledjHamr-67bb592b153cd97ece90f12b106c251ca4d08694.tar.xz
Use stringshare, and const.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index 523b9c3..e54e0e6 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -277,7 +277,7 @@ LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval,
277 } 277 }
278 if (OT_invalid == lval->basicType) 278 if (OT_invalid == lval->basicType)
279 { 279 {
280 char *leftType = "", *rightType = ""; 280 const char *leftType = "", *rightType = "";
281 281
282 if (left) 282 if (left)
283 leftType = allowed[left->basicType].name; 283 leftType = allowed[left->basicType].name;
@@ -335,7 +335,7 @@ LSL_Leaf *addFunction(LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *open, LSL_
335 { 335 {
336 if (identifier) 336 if (identifier)
337 { 337 {
338 char *temp = identifier->value.stringValue; 338 const char *temp = identifier->value.stringValue;
339 339
340 identifier->token = tokens[LSL_FUNCTION - lowestToken]; 340 identifier->token = tokens[LSL_FUNCTION - lowestToken];
341 identifier->value.functionValue = func; 341 identifier->value.functionValue = func;