mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 02:59:54 +00:00
Fix dst_register.
This commit is contained in:
parent
510feeed7f
commit
1b009b4f1f
4
Makefile
4
Makefile
@ -32,8 +32,8 @@ BINDIR=$(PREFIX)/bin
|
||||
# TODO - when api is finalized, only export public symbols instead of using rdynamic
|
||||
# which exports all symbols. Saves a few KB in binary.
|
||||
|
||||
CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -g
|
||||
#CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -O2 -fvisibility=hidden
|
||||
#CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -g
|
||||
CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -O2 -fvisibility=hidden
|
||||
CLIBS=-lm -ldl
|
||||
PREFIX=/usr/local
|
||||
DST_TARGET=dst
|
||||
|
@ -138,7 +138,7 @@ const void *dst_strbinsearch(
|
||||
}
|
||||
|
||||
void dst_register(const char *name, Dst value) {
|
||||
Dst regkey = dst_cstringv(name);
|
||||
Dst regkey = dst_csymbolv(name);
|
||||
dst_table_put(dst_vm_registry, regkey, value);
|
||||
dst_table_put(dst_vm_registry, value, regkey);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user