add dicts

This commit is contained in:
suchmememanyskill
2021-07-12 18:04:52 +02:00
parent 0bef41c033
commit 8c6e70b63d
8 changed files with 97 additions and 3 deletions

View File

@@ -79,6 +79,13 @@ ClassFunction(stdBreak) {
return NULL;
}
ClassFunction(stdDict) {
Variable_t a = { 0 };
a.variableType = DictionaryClass;
a.dictionary.vector = newVec(sizeof(Dict_t), 0);
return copyVariableToPtr(a);
}
#ifndef WIN32
ClassFunction(stdMountSysmmc){
if (connectMMC(MMC_CONN_EMMC))
@@ -121,6 +128,7 @@ enum standardFunctionIndexes {
STD_MOUNTSAVE,
STD_EXIT,
STD_BREAK,
STD_DICT,
};
u8 oneIntoneFunction[] = { IntClass, FunctionClass };
@@ -135,6 +143,7 @@ ClassFunctionTableEntry_t standardFunctionDefenitions[] = {
[STD_MOUNTSAVE] = {"readsave", stdMountSave, 1, oneStringArgStd},
[STD_EXIT] = {"exit", stdExit, 0, 0},
[STD_BREAK] = {"break", stdBreak, 0, 0},
[STD_DICT] = {"dict", stdDict, 0, 0},
};
ClassFunctionTableEntry_t* searchStdLib(char* funcName) {