Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c643f200a1 | ||
|
|
4e7d09cfa9 |
@@ -53,8 +53,9 @@ This file provides set up codestyle rules.
|
|||||||
There is two targets in Makefile for debugging purposes: `build-c` for the compiler and `build-vm` for the VM.
|
There is two targets in Makefile for debugging purposes: `build-c` for the compiler and `build-vm` for the VM.
|
||||||
Each target can be called with `FILE` variable. For example:
|
Each target can be called with `FILE` variable. For example:
|
||||||
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ make debug-c FILE=exl/hw.fzs
|
$ make debug-c FILE=exl/hw.fzs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To test new features, use `test` make target and the tests, defined in `CMakeLists.txt`.
|
||||||
|
|
||||||
|
|||||||
@@ -57,3 +57,5 @@
|
|||||||
$ make debug-c FILE=exl/hw.fzs
|
$ make debug-c FILE=exl/hw.fzs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Для проверки новых фич, нужно использовать make-таргет `test`, а тесты писать в `CMakeLists.txt`.
|
||||||
|
|
||||||
|
|||||||
@@ -638,6 +638,12 @@ void fzl_freevm(fzl_vm_t *vm)
|
|||||||
free((void *)vm->consts[i].as.string.chars);
|
free((void *)vm->consts[i].as.string.chars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (size_t i = 0; i < vm->objects_count; i++)
|
||||||
|
{
|
||||||
|
free(vm->objects[i]->values);
|
||||||
|
free(vm->objects[i]);
|
||||||
|
}
|
||||||
|
|
||||||
free(vm->consts);
|
free(vm->consts);
|
||||||
free(vm->ops);
|
free(vm->ops);
|
||||||
free(vm);
|
free(vm);
|
||||||
|
|||||||
Reference in New Issue
Block a user