+2007-01-18 Han-Wen Nienhuys <hanwen@lilypond.org>
+
+ * throw.c (scm_ithrow): more refined error message: print symbols
+ too.
+
2007-01-16 Kevin Ryde <user42@zip.com.au>
* feature.c, feature.h (scm_set_program_arguments_scm): New function,
for (; scm_is_pair (s); s = scm_cdr (s), i++)
- if (scm_is_string (scm_car (s)))
- fprintf (stderr, "argument %d: %s\n", i, scm_i_string_chars (scm_car (s)));
-
+ {
+ char const *str = NULL;
+ if (scm_is_string (scm_car (s)))
+ str = scm_i_string_chars (scm_car (s));
+ else if (scm_is_symbol (scm_car (s)))
+ str = scm_i_symbol_chars (scm_car (s));
+
+ if (str != NULL)
+ fprintf (stderr, "argument %d: %s\n", i, str);
+ }
abort ();
}