From 581d1fa6bfd16e55457f081be6ae4a2af341425a Mon Sep 17 00:00:00 2001 From: onefang Date: Sat, 25 Apr 2020 05:13:41 +1000 Subject: Comment out the Lua example at the very end. --- src/sledjchisl/sledjchisl.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index f783be0..e30cb47 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -6569,7 +6569,7 @@ fcgiDone: { } - +/* double sum; // Load the file containing the script we are going to run @@ -6580,13 +6580,14 @@ fcgiDone: E("Couldn't load file: %s", lua_tostring(L, -1)); goto finished; } +*/ /* * Ok, now here we go: We pass data to the lua script on the stack. * That is, we first have to prepare Lua's virtual stack the way we * want the script to receive it, then ask Lua to run it. */ - lua_newtable(L); /* We will pass a table */ +// lua_newtable(L); /* We will pass a table */ /* * To put values into the table, we first push the index, then the @@ -6603,6 +6604,7 @@ fcgiDone: * of the stack, so that after it has been called, the table is at the * top of the stack. */ +/* for (i = 1; i <= 5; i++) { lua_pushnumber(L, i); // Push the table index @@ -6627,17 +6629,17 @@ fcgiDone: I("Script returned: %.0f", sum); lua_pop(L, 1); // Take the returned value out of the stack - +*/ finished: // An example of calling a toy directly. - printf("\n\n"); - char *argv[] = {"ls", "-l", "-a", NULL}; - printf("%d\n", runToy(argv)); +// printf("\n\n"); +// char *argv[] = {"ls", "-l", "-a", NULL}; +// printf("%d\n", runToy(argv)); - puts(""); + puts("This is the end my friend."); fflush(stdout); cleanup(); -- cgit v1.1