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