diff options
author | David Walter Seikel | 2012-01-21 19:24:53 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-21 19:24:53 +1000 |
commit | b27dab5443ca5919e7727fd2666559a6498d8c3d (patch) | |
tree | 685b024be28145d2a71cfd8d0c2a106032446a68 /LuaSL/src/LuaSL_compile.c | |
parent | Second part of the second pass to clean up functions used before they where d... (diff) | |
download | SledjHamr-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.c | 10 |
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 | ||
435 | LSL_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 | |||
435 | LSL_Leaf *addParameter(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier) | 445 | LSL_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)); |