* scaffold/mini-mes.c (error, bload_env, main): Send debug info to
stderr.
throw/catch dinges: URG
if ((throw = assq_ref_env (cell_symbol_throw, r0)) != cell_undefined)
return apply (throw, cons (key, cons (x, cell_nil)), r0);
display_error_ (key);
if ((throw = assq_ref_env (cell_symbol_throw, r0)) != cell_undefined)
return apply (throw, cons (key, cons (x, cell_nil)), r0);
display_error_ (key);
set_env_x (SCM x, SCM e, SCM a)
{
SCM p = assert_defined (x, assq (x, a));
set_env_x (SCM x, SCM e, SCM a)
{
SCM p = assert_defined (x, assq (x, a));
- if (TYPE (p) != TPAIR) error (cell_symbol_not_a_pair, cons (p, x));
+ if (TYPE (p) != TPAIR) error (cell_symbol_not_a_pair, cons (p, x));
return set_cdr_x (p, e);
}
return set_cdr_x (p, e);
}
SCM throw;
if ((throw = assq_ref_env (cell_symbol_throw, r0)) != cell_undefined)
return apply (throw, cons (key, cons (x, cell_nil)), r0);
SCM throw;
if ((throw = assq_ref_env (cell_symbol_throw, r0)) != cell_undefined)
return apply (throw, cons (key, cons (x, cell_nil)), r0);
- display_ (key);
- puts (": ");
+ display_error_ (key);
+ eputs (": ");
SCM s = g_symbols;
while (s && s != cell_nil) {
SCM s = g_symbols;
while (s && s != cell_nil) {
- display_ (CAR (s));
- puts (" ");
+ display_error_ (CAR (s));
+ eputs (" ");
- puts ("\n");
- puts ("functions: ");
- puts (itoa (g_function));
- puts ("\n");
+ eputs ("\n");
+ eputs ("functions: ");
+ eputs (itoa (g_function));
+ eputs ("\n");
for (int i = 0; i < g_function; i++)
{
for (int i = 0; i < g_function; i++)
{
- puts ("[");
- puts (itoa (i));
- puts ("]: ");
- puts (g_functions[i].name);
- puts ("\n");
+ eputs ("[");
+ eputs (itoa (i));
+ eputs ("]: ");
+ eputs (g_functions[i].name);
+ eputs ("\n");
- display_ (r0);
- puts ("\n");
+ //display_error_ (r0);
+ //puts ("\n");
if (g_debug)
{
eputs ("program: ");
if (g_debug)
{
eputs ("program: ");
eputs ("\n");
}
r3 = cell_vm_begin;
r1 = eval_apply ();
eputs ("\n");
}
r3 = cell_vm_begin;
r1 = eval_apply ();
eputs ("\n");
#if !MES_MINI
eputs ("\n");
#if !MES_MINI