aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_compile.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 19:44:00 +1000
committerDavid Walter Seikel2013-01-13 19:44:00 +1000
commit7a533b883b789f0e4a1e2d6379b2735e41ad4ed5 (patch)
treece030e02728ac0b66bffbd8482809d18bb20cb80 /LuaSL/src/LuaSL_compile.c
parentRemove damned ancient DOS line endings from Irrlicht. Hopefully I did not go... (diff)
downloadSledjHamr-7a533b883b789f0e4a1e2d6379b2735e41ad4ed5.zip
SledjHamr-7a533b883b789f0e4a1e2d6379b2735e41ad4ed5.tar.gz
SledjHamr-7a533b883b789f0e4a1e2d6379b2735e41ad4ed5.tar.bz2
SledjHamr-7a533b883b789f0e4a1e2d6379b2735e41ad4ed5.tar.xz
Fixed some of the bit rot in LuaSL, it compiles now, but not working still.
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-rw-r--r--LuaSL/src/LuaSL_compile.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index de103b7..2a4c503 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -673,7 +673,7 @@ LSL_Leaf *collectParameters(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *
673 if (func) 673 if (func)
674 { 674 {
675 list->value.functionValue = func; 675 list->value.functionValue = func;
676 eina_inarray_setup(&(func->vars), sizeof(LSL_Leaf), 3); 676 eina_inarray_step_set(&(func->vars), sizeof(Eina_Inarray), sizeof(LSL_Leaf), 3);
677 } 677 }
678 } 678 }
679 679
@@ -685,9 +685,9 @@ LSL_Leaf *collectParameters(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *
685 { 685 {
686 // Stash the comma for diff later. 686 // Stash the comma for diff later.
687 if (comma) 687 if (comma)
688 eina_inarray_append(&(func->vars), comma); 688 eina_inarray_push(&(func->vars), comma);
689 } 689 }
690 eina_inarray_append(&(func->vars), newParam); 690 eina_inarray_push(&(func->vars), newParam);
691 // At this point, pointers to newParams are not pointing to the one in func->vars, AND newParam is no longer needed. 691 // At this point, pointers to newParams are not pointing to the one in func->vars, AND newParam is no longer needed.
692 } 692 }
693 } 693 }
@@ -770,7 +770,7 @@ LSL_Leaf *collectArguments(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *c
770 if (call) 770 if (call)
771 { 771 {
772 list->value.functionCallValue = call; 772 list->value.functionCallValue = call;
773 eina_inarray_setup(&(call->params), sizeof(LSL_Leaf), 3); 773 eina_inarray_step_set(&(call->params), sizeof(Eina_Inarray), sizeof(LSL_Leaf), 3);
774 } 774 }
775 } 775 }
776 776
@@ -782,9 +782,9 @@ LSL_Leaf *collectArguments(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *c
782 { 782 {
783 // Stash the comma for diff later. 783 // Stash the comma for diff later.
784 if (comma) 784 if (comma)
785 eina_inarray_append(&(call->params), comma); 785 eina_inarray_push(&(call->params), comma);
786 } 786 }
787 eina_inarray_append(&(call->params), arg); 787 eina_inarray_push(&(call->params), arg);
788 // At this point, pointers to arg are not pointing to the one in call->params, AND arg is no longer needed. 788 // At this point, pointers to arg are not pointing to the one in call->params, AND arg is no longer needed.
789 } 789 }
790 } 790 }