pikapython/package/PikaStdData/PikaStdData_Dict.c
2021-12-28 01:21:47 +08:00

24 lines
567 B
C

#include "PikaObj.h"
#include "PikaStdLib_SysObj.h"
#include "PikaStdData_Dict.h"
Arg* PikaStdData_Dict_get(PikaObj* self, char* key) {
return arg_copy(obj_getArg(self, key));
}
void PikaStdData_Dict___init__(PikaObj* self) {}
void PikaStdData_Dict_set(PikaObj* self, Arg* arg, char* key) {
obj_setArg(self, key, arg);
}
void PikaStdData_Dict_remove(PikaObj* self, char* key) {
PikaStdLib_SysObj_remove(self, key);
}
Arg * PikaStdData_Dict___iter__(PikaObj *self){
return NULL;
}
Arg * PikaStdData_Dict___next__(PikaObj *self){
return NULL;
}