Commit c6f403cd c6f403cd54e454eadf4cce11c7f20c182a3b6efc by Sergey Poznyakoff

(guimb_catch_body, guimb_catch_handler) New functions.

1 parent 86d3f4a0
...@@ -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
......