diff options
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-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)); |