Alex Shinn
Alex Shinn
Since it's a new function specifically for Chibi, why not write it to take a Scheme list? If the primitive is named %act_replace_select_action, it can take a list, and then...
Then you can have 2 C functions: one which takes a Scheme list, and another variadic C function which builds a Scheme list to call the first function. Although a...
What is callback? If it's a Scheme procedure you want to use `sexp_apply`: ``` sexp_apply(client->ctx, callback, SEXP_NULL); ```
`sexp_apply` returns the result of its computation, including any errors. You need to inspect this result and print them out if an exception is returned.
I'm not sure if the flat syntactic closures are expected to work at all. Did you want to use them?
Yes, the symbol table implementation predates weak references. We can probably fix this now easily.
Clang is the primary compiler I use for Chibi development, I'm surprised you're having problems. Are you sure the error is "count's load" and not "couldn't load"? LD_LIBRARY_PATH is needed...
According to this, https://stackoverflow.com/questions/33206409/unused-dt-entry-type-0x1d-arg, it looks like you're cross-compiling with the wrong flags, most likely the RLDFLAGS from Makefile.detect. You can try unsetting this, it shouldn't strictly be needed. If...
I've added detection for Android. It looks like Android expects shared libraries in pre-specified directories and won't honor LD_LIBRARY_PATH? https://stackoverflow.com/questions/15719149/how-to-integrate-native-runtime-library-with-dlopen-on-ndk. You may want to try building chibi-scheme-static.
Hmmm... actually you don't need a static executable, you just need to disable dynamic lib loading. You should be to do: ``` make chibi-scheme-static make clibs.c make -B chibi-scheme SEXP_USE_DL=0...