Report the faulty keyword in errors raised by `scm_c_bind_keyword_arguments'.
authorLudovic Courtès <ludo@gnu.org>
Tue, 4 Jun 2013 22:25:39 +0000 (00:25 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 4 Jun 2013 22:25:39 +0000 (00:25 +0200)
commit79a9a2c271f18d1cd2031b23c682dadd0cf31bae
tree3159f2c56aa96365d819e687bc0862ed6460a9d7
parent4af0d97ee65f298be33d5959cd36a5bea8797be9
Report the faulty keyword in errors raised by `scm_c_bind_keyword_arguments'.

Reported by Mark H. Weaver.

* libguile/keywords.c (scm_c_bind_keyword_arguments): Use
  `scm_error_scm' instead of `scm_error'.  Pass the faulty keyword
  enclosed in a list as the last argument.
* test-suite/tests/optargs.test ("scm_c_bind_keyword_arguments"): New
  test prefix.
libguile/keywords.c
test-suite/tests/optargs.test