mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 22:59:16 +02:00
Thread parameters are still needed when threads are disabled.
This commit is contained in:
parent
d13aa7c4f2
commit
a61cebb1e9
3 changed files with 4 additions and 4 deletions
2
eval.c
2
eval.c
|
@ -1969,6 +1969,7 @@ sexp sexp_dk (sexp ctx, sexp self, sexp_sint_t n, sexp val) {
|
|||
return SEXP_VOID;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
sexp sexp_thread_parameters (sexp ctx, sexp self, sexp_sint_t n) {
|
||||
sexp res = sexp_context_params(ctx);
|
||||
|
@ -1979,7 +1980,6 @@ sexp sexp_thread_parameters_set (sexp ctx, sexp self, sexp_sint_t n, sexp new) {
|
|||
sexp_context_params(ctx) = new;
|
||||
return SEXP_VOID;
|
||||
}
|
||||
#endif
|
||||
|
||||
void sexp_set_parameter (sexp ctx, sexp env, sexp name, sexp value) {
|
||||
sexp param = sexp_env_ref(env, name, SEXP_FALSE);
|
||||
|
|
|
@ -129,9 +129,9 @@ SEXP_API sexp sexp_string_utf8_index_set (sexp ctx, sexp self, sexp_sint_t n, se
|
|||
#endif
|
||||
#if SEXP_USE_GREEN_THREADS
|
||||
SEXP_API sexp sexp_dk (sexp ctx, sexp self, sexp_sint_t n, sexp val);
|
||||
#endif
|
||||
SEXP_API sexp sexp_thread_parameters (sexp ctx, sexp self, sexp_sint_t n);
|
||||
SEXP_API sexp sexp_thread_parameters_set (sexp ctx, sexp self, sexp_sint_t n, sexp val);
|
||||
#endif
|
||||
SEXP_API sexp sexp_string_cmp_op (sexp ctx, sexp self, sexp_sint_t n, sexp a, sexp b, sexp ci);
|
||||
#if SEXP_USE_RATIOS
|
||||
SEXP_API sexp sexp_ratio_numerator_op (sexp ctx, sexp self, sexp_sint_t n, sexp rat);
|
||||
|
|
|
@ -248,10 +248,10 @@ _FN2(SEXP_VOID, _I(SEXP_STRING), _I(SEXP_BOOLEAN), "add-module-directory", 0, se
|
|||
#endif
|
||||
#if SEXP_USE_GREEN_THREADS
|
||||
_FN1OPT(_I(SEXP_OBJECT), _I(SEXP_OBJECT), "%dk", SEXP_FALSE, sexp_dk),
|
||||
_FN0(_I(SEXP_OBJECT), "thread-parameters", 0, sexp_thread_parameters),
|
||||
_FN1(_I(SEXP_OBJECT), _I(SEXP_OBJECT), "thread-parameters-set!", 0, sexp_thread_parameters_set),
|
||||
_OP(SEXP_OPC_GENERIC, SEXP_OP_YIELD, 0, 0, SEXP_VOID, SEXP_FALSE, SEXP_FALSE, SEXP_FALSE, 0, "yield!", 0, NULL),
|
||||
#endif
|
||||
_FN0(_I(SEXP_OBJECT), "thread-parameters", 0, sexp_thread_parameters),
|
||||
_FN1(_I(SEXP_OBJECT), _I(SEXP_OBJECT), "thread-parameters-set!", 0, sexp_thread_parameters_set),
|
||||
#if SEXP_USE_PROFILE_VM
|
||||
_FN0(SEXP_VOID, "reset-vm-profile", 0, sexp_reset_vm_profile),
|
||||
_FN0(SEXP_VOID, "print-vm-profile", 0, sexp_print_vm_profile),
|
||||
|
|
Loading…
Add table
Reference in a new issue