Don't use the runner lib yet - will finish in the morning

This commit is contained in:
2023-01-20 13:59:28 +00:00
parent 2c06c5e38b
commit c47ee68b3f

View File

@@ -116,7 +116,7 @@ static int nativeRunScript(Interpreter* interpreter, LiteralArray* arguments) {
// //
return 1; return -1;
} }
static int nativeGetScriptVar(Interpreter* interpreter, LiteralArray* arguments) { static int nativeGetScriptVar(Interpreter* interpreter, LiteralArray* arguments) {
@@ -128,7 +128,7 @@ static int nativeGetScriptVar(Interpreter* interpreter, LiteralArray* arguments)
// //
return 1; return -1;
} }
static int nativeCallScriptFn(Interpreter* interpreter, LiteralArray* arguments) { static int nativeCallScriptFn(Interpreter* interpreter, LiteralArray* arguments) {
@@ -140,7 +140,7 @@ static int nativeCallScriptFn(Interpreter* interpreter, LiteralArray* arguments)
// //
return 1; return -1;
} }
static int nativeResetScript(Interpreter* interpreter, LiteralArray* arguments) { static int nativeResetScript(Interpreter* interpreter, LiteralArray* arguments) {
@@ -152,7 +152,7 @@ static int nativeResetScript(Interpreter* interpreter, LiteralArray* arguments)
// //
return 0; return -1;
} }
static int nativeFreeScript(Interpreter* interpreter, LiteralArray* arguments) { static int nativeFreeScript(Interpreter* interpreter, LiteralArray* arguments) {
@@ -199,10 +199,10 @@ int hookRunner(Interpreter* interpreter, Literal identifier, Literal alias) {
//build the natives list //build the natives list
Natives natives[] = { Natives natives[] = {
{"loadScript", nativeLoadScript}, {"loadScript", nativeLoadScript},
{"_runScript", nativeRunScript}, {"x_runScript", nativeRunScript},
{"_getScriptVar", nativeGetScriptVar}, {"x_getScriptVar", nativeGetScriptVar},
{"_callScriptFn", nativeCallScriptFn}, {"x_callScriptFn", nativeCallScriptFn},
{"_resetScript", nativeResetScript}, {"x_resetScript", nativeResetScript},
{"_freeScript", nativeFreeScript}, {"_freeScript", nativeFreeScript},
{NULL, NULL} {NULL, NULL}
}; };