Improve type checking when invoking foreign functions.
authorLudovic Courtès <ludo@gnu.org>
Tue, 8 Feb 2011 23:08:14 +0000 (00:08 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 8 Feb 2011 23:08:14 +0000 (00:08 +0100)
commit9970cf67080b48ec35680c70146500428b47bf3e
treef8e6b3ebb87626783d46bd6d3a6387772796a027
parent6090483143d53a136e46186887edb3961b825682
Improve type checking when invoking foreign functions.

* libguile/foreign.c (unpack): Make sure X is a pointer before using
  `SCM_POINTER_VALUE'.

* test-suite/tests/foreign.test ("pointer->procedure"): New test prefix.
libguile/foreign.c
test-suite/tests/foreign.test