if (scm_root->block_asyncs == 0)
{
SCM asyncs;
- while (!SCM_NULLP(asyncs = scm_root->active_asyncs))
+ while (!scm_is_null(asyncs = scm_root->active_asyncs))
{
scm_root->active_asyncs = SCM_EOL;
do
scm_call_0 (SCM_CAR (asyncs));
asyncs = SCM_CDR (asyncs);
}
- while (!SCM_NULLP(asyncs));
+ while (!scm_is_null(asyncs));
}
- for (asyncs = scm_root->signal_asyncs; !SCM_NULLP(asyncs);
+ for (asyncs = scm_root->signal_asyncs; !scm_is_null(asyncs);
asyncs = SCM_CDR (asyncs))
{
- if (!SCM_FALSEP (SCM_CAR (asyncs)))
+ if (scm_is_true (SCM_CAR (asyncs)))
{
SCM proc = SCM_CAR (asyncs);
SCM_SETCAR (asyncs, SCM_BOOL_F);
}
void
-scm_with_blocked_asyncs ()
+scm_frame_block_asyncs ()
{
- scm_on_rewind (increase_block, NULL, SCM_F_WIND_EXPLICITLY);
- scm_on_unwind (decrease_block, NULL, SCM_F_WIND_EXPLICITLY);
+ scm_frame_rewind_handler (increase_block, NULL, SCM_F_WIND_EXPLICITLY);
+ scm_frame_unwind_handler (decrease_block, NULL, SCM_F_WIND_EXPLICITLY);
}
void
-scm_with_unblocked_asyncs ()
+scm_frame_unblock_asyncs ()
{
if (scm_root->block_asyncs == 0)
scm_misc_error ("scm_with_unblocked_asyncs",
"asyncs already unblocked", SCM_EOL);
- scm_on_rewind (decrease_block, NULL, SCM_F_WIND_EXPLICITLY);
- scm_on_unwind (increase_block, NULL, SCM_F_WIND_EXPLICITLY);
+ scm_frame_rewind_handler (decrease_block, NULL, SCM_F_WIND_EXPLICITLY);
+ scm_frame_unwind_handler (increase_block, NULL, SCM_F_WIND_EXPLICITLY);
}