#endif
display_error_ (key);
eputs (": ");
- display_error_ (x);
+ write_error_ (x);
eputs ("\n");
exit (1);
}
eputs (s);
eputs (type);
eputs ("[");
- display_error_ (e);
+ write_error_ (e);
eputs ("]\n");
SCM e = MAKE_STRING (cstring_to_list (s));
return error (cell_symbol_wrong_type_arg, cons (e, f));
append2 (SCM x, SCM y)
{
if (x == cell_nil) return y;
- assert (TYPE (x) == TPAIR);
+ if (TYPE (x) != TPAIR) error (cell_symbol_not_a_pair, cons (x, cell_append2));
return cons (car (x), append2 (cdr (x), y));
}
SCM
set_car_x (SCM x, SCM e)
{
- assert (TYPE (x) == TPAIR);
+ if (TYPE (x) != TPAIR) error (cell_symbol_not_a_pair, cons (x, cell_set_car_x));
CAR (x) = e;
return cell_unspecified;
}
if (g_debug > 1)
{
eputs ("program: ");
- display_error_ (r1);
+ write_error_ (r1);
eputs ("\n");
}
r3 = cell_vm_begin;
r1 = eval_apply ();
- display_error_ (r1);
+ write_error_ (r1);
eputs ("\n");
gc (g_stack);
if (g_debug)