allow `apply' on %nil-terminated lists
authorAndy Wingo <wingo@pobox.com>
Sun, 4 Jan 2009 13:06:52 +0000 (14:06 +0100)
committerAndy Wingo <wingo@pobox.com>
Sun, 4 Jan 2009 13:06:52 +0000 (14:06 +0100)
commitfb10a0084e0e670cf6ecad1e62e6f22e315672b9
treebd13dd608db4d097f3afd3683443e803487d5a54
parentb1b942b74c0f2a9870326372843ea1baeafc3dcb
allow `apply' on %nil-terminated lists

* libguile/vm-engine.h (PUSH_LIST): Add a parameter to check that the
  list was proper.

* libguile/vm-i-system.c: Adapt PUSH_LIST callsites to pass SCM_NULLP or
  SCM_NULL_OR_NIL_P, as appropriate. Add a check to return/values*.

* libguile/vm.c: Add lang.h header for SCM_NULL_OR_NIL_P.

* test-suite/tests/elisp.test: Fix XFAIL for elisp + apply.
libguile/vm-engine.h
libguile/vm-i-system.c
libguile/vm.c
test-suite/tests/elisp.test