(guimb_catch_body, guimb_catch_handler) New functions.
Showing
1 changed file
with
15 additions
and
1 deletions
... | @@ -188,7 +188,20 @@ collect_drop_mailbox () | ... | @@ -188,7 +188,20 @@ collect_drop_mailbox () |
188 | } | 188 | } |
189 | } | 189 | } |
190 | 190 | ||
191 | int | 191 | SCM |
192 | guimb_catch_body (void *data, mailbox_t unused) | ||
193 | { | ||
194 | struct guimb_data *gd = data; | ||
195 | if (gd->program_file) | ||
196 | scm_primitive_load (scm_makfrom0str (gd->program_file)); | ||
197 | |||
198 | if (gd->program_expr) | ||
199 | scm_eval_0str (gd->program_expr); | ||
200 | |||
201 | return SCM_BOOL_F; | ||
202 | } | ||
203 | |||
204 | SCM | ||
192 | guimb_catch_handler (void *unused, SCM tag, SCM throw_args) | 205 | guimb_catch_handler (void *unused, SCM tag, SCM throw_args) |
193 | { | 206 | { |
194 | collect_drop_mailbox (); | 207 | collect_drop_mailbox (); |
... | @@ -202,3 +215,4 @@ guimb_exit (void *unused1, mailbox_t unused2) | ... | @@ -202,3 +215,4 @@ guimb_exit (void *unused1, mailbox_t unused2) |
202 | collect_drop_mailbox (); | 215 | collect_drop_mailbox (); |
203 | return rc; | 216 | return rc; |
204 | } | 217 | } |
218 | ... | ... |
-
Please register or sign in to post a comment