1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-14 06:17:15 +00:00

Rename some fuctions in util.

This commit is contained in:
Calvin Rose
2017-04-18 16:55:03 -04:00
parent ea432242d3
commit f4a6f4073f
7 changed files with 60 additions and 36 deletions

View File

@@ -498,16 +498,17 @@ void gst_init(Gst *vm) {
/* Garbage collection */
vm->blocks = NULL;
vm->nextCollection = 0;
/* Setting memoryInterval to zero currently forces
/* Setting memoryInterval to zero forces
* a collection pretty much every cycle, which is
* obviously horrible for performance. It helps ensure
* obviously horrible for performance, but helps ensure
* there are no memory bugs during dev */
vm->memoryInterval = 2000;
vm->black = 0;
/* Add thread */
vm->thread = NULL;
/* Set up global env */
vm->rootenv = NULL;
vm->modules = NULL;
vm->registry = NULL;
/* Set up scratch memory */
vm->scratch = NULL;
vm->scratch_len = 0;
@@ -522,7 +523,8 @@ void gst_init(Gst *vm) {
void gst_deinit(Gst *vm) {
gst_clear_memory(vm);
vm->thread = NULL;
vm->rootenv = NULL;
vm->modules = NULL;
vm->registry = NULL;
vm->ret.type = GST_NIL;
vm->scratch = NULL;
vm->scratch_len = 0;