finish basic function of repl

This commit is contained in:
ValKmjolnir
2023-09-17 17:56:59 +08:00
parent b77d7fafb1
commit 3e01239722
8 changed files with 63 additions and 32 deletions

View File

@@ -537,11 +537,8 @@ void gc::extend(u8 type) {
void gc::init(
const std::vector<std::string>& s, const std::vector<std::string>& argv) {
// initialize function register
rctx->funcr = nil;
worktime = 0;
// initialize counters
worktime = 0;
for(u8 i = 0; i<gc_type_size; ++i) {
size[i] = gcnt[i] = acnt[i] = 0;
}