major restructuring

This commit is contained in:
Francesco Cozzuto
2023-01-20 20:52:20 +01:00
parent 0980cc193d
commit 411388755f
30 changed files with 2175 additions and 2362 deletions
+12
View File
@@ -0,0 +1,12 @@
#include "runtime.h"
int runSource(Runtime *runtime, Source *source, Object *rets[static MAX_RETS], Error *error);
int runBytecodeSource(Runtime *runtime, Source *source, Object *rets[static MAX_RETS], Error *error);
bool runFile(Runtime *runtime, const char *file, Error *error);
bool runString(Runtime *runtime, const char *string, Error *error);
bool runBytecodeFile(Runtime *runtime, const char *file, Error *error);
bool runBytecodeString(Runtime *runtime, const char *string, Error *error);
int runFileEx(Runtime *runtime, const char *file, Object *rets[static MAX_RETS], Error *error);
int runStringEx(Runtime *runtime, const char *name, const char *string, Object *rets[static MAX_RETS], Error *error);
int runBytecodeFileEx(Runtime *runtime, const char *file, Object *rets[static MAX_RETS], Error *error);
int runBytecodeStringEx(Runtime *runtime, const char *name, const char *string, Object *rets[static MAX_RETS], Error *error);
int runFileRelativeToScript(Runtime *runtime, const char *file, Object *rets[static MAX_RETS], Error *error);