mirror of
https://github.com/janet-lang/janet
synced 2025-10-28 06:07:43 +00:00
Fix write after free bug.
Remove caching from strings, tuples, and structs. Keyword style strings removed, now are just symbols. The compiler can decide to treat symbols with a leading ':' differently for mostly the same effect. This was done because as strings are no longer interned, symbols are cheaper to look up and check for equality.
This commit is contained in:
@@ -131,7 +131,7 @@ int dst_sys_put(DstValue *argv, uint32_t argn) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
DstCFunction dst_vm_syscalls[256] = {
|
||||
const DstCFunction dst_vm_syscalls[256] = {
|
||||
dst_sys_print,
|
||||
dst_sys_asm,
|
||||
dst_sys_tuple,
|
||||
|
||||
Reference in New Issue
Block a user