diff options
author | David Walter Seikel | 2013-01-13 19:44:00 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 19:44:00 +1000 |
commit | 7a533b883b789f0e4a1e2d6379b2735e41ad4ed5 (patch) | |
tree | ce030e02728ac0b66bffbd8482809d18bb20cb80 /LuaSL | |
parent | Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go... (diff) | |
download | SledjHamr-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 '')
-rwxr-xr-x | LuaSL/build.sh | 3 | ||||
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 12 |
2 files changed, 8 insertions, 7 deletions
diff --git a/LuaSL/build.sh b/LuaSL/build.sh index 7d95965..5e60691 100755 --- a/LuaSL/build.sh +++ b/LuaSL/build.sh | |||
@@ -21,6 +21,7 @@ CFLAGS="-g -Wall -Wunreachable-code -I include -I $LOCALDIR/src" | |||
21 | CFLAGS="$CFLAGS -I ../../libraries" | 21 | CFLAGS="$CFLAGS -I ../../libraries" |
22 | CFLAGS="$CFLAGS -I ../../libraries/luajit-2.0/src" | 22 | CFLAGS="$CFLAGS -I ../../libraries/luajit-2.0/src" |
23 | #CFLAGS="$CFLAGS -I /usr/include/lua5.1" | 23 | #CFLAGS="$CFLAGS -I /usr/include/lua5.1" |
24 | CFLAGS="$CFLAGS -I $E17DIR/include/eo-1" | ||
24 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" | 25 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" |
25 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" | 26 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" |
26 | CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" | 27 | CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" |
@@ -32,7 +33,7 @@ CFLAGS="$CFLAGS -I $E17DIR/include" | |||
32 | CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" | 33 | CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" |
33 | 34 | ||
34 | LDFLAGS="-L ../../libraries/luajit-2.0/src -L lib -L /usr/lib -L /lib -L $E17DIR/lib" | 35 | LDFLAGS="-L ../../libraries/luajit-2.0/src -L lib -L /usr/lib -L /lib -L $E17DIR/lib" |
35 | libs="-lecore -levas -ledje -lembryo -leet -leina -lluajit -lpthread -lm" | 36 | libs="-leo -lecore -levas -ledje -lembryo -leet -leina -lluajit -lpthread -lm" |
36 | #LDFLAGS="-L /usr/lib/lua/5.1 -L lib -L /usr/lib -L /lib -L $E17DIR/lib" | 37 | #LDFLAGS="-L /usr/lib/lua/5.1 -L lib -L /usr/lib -L /lib -L $E17DIR/lib" |
37 | #libs="-lecore -levas -ledje -lembryo -leet -leina -llua5.1 -lpthread -lm" | 38 | #libs="-lecore -levas -ledje -lembryo -leet -leina -llua5.1 -lpthread -lm" |
38 | # These need to be added to libs if linking staticaly, though some parts of EFL don't like that. | 39 | # These need to be added to libs if linking staticaly, though some parts of EFL don't like that. |
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 | } |