aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_compile.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-21 19:24:53 +1000
committerDavid Walter Seikel2012-01-21 19:24:53 +1000
commitb27dab5443ca5919e7727fd2666559a6498d8c3d (patch)
tree685b024be28145d2a71cfd8d0c2a106032446a68 /LuaSL/src/LuaSL_compile.c
parentSecond part of the second pass to clean up functions used before they where d... (diff)
downloadSledjHamr-b27dab5443ca5919e7727fd2666559a6498d8c3d.zip
SledjHamr-b27dab5443ca5919e7727fd2666559a6498d8c3d.tar.gz
SledjHamr-b27dab5443ca5919e7727fd2666559a6498d8c3d.tar.bz2
SledjHamr-b27dab5443ca5919e7727fd2666559a6498d8c3d.tar.xz
Parse 'crements.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_compile.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index 5a3a68b..cb64038 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -432,6 +432,16 @@ LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval,
432 return lval; 432 return lval;
433} 433}
434 434
435LSL_Leaf *addCrement(LuaSL_compiler *compiler, LSL_Leaf *variable, LSL_Leaf *crement)
436{
437 if ((variable) && (crement))
438 {
439 crement->basicType = variable->basicType;
440 }
441
442 return crement;
443}
444
435LSL_Leaf *addParameter(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier) 445LSL_Leaf *addParameter(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier)
436{ 446{
437 LSL_Identifier *result = calloc(1, sizeof(LSL_Identifier)); 447 LSL_Identifier *result = calloc(1, sizeof(LSL_Identifier));