better debuggability for interpreted procedures
authorAndy Wingo <wingo@pobox.com>
Tue, 15 Nov 2011 22:36:07 +0000 (23:36 +0100)
committerAndy Wingo <wingo@pobox.com>
Tue, 15 Nov 2011 22:36:07 +0000 (23:36 +0100)
commitf3cf9421cb319e2cb9ffde4ec41cad7fdcafcebc
tree57bf3d168cfa8280a727faa2c073bbf2d9fb02e2
parent020602791b3f929e2d65ffdd8d67977763d6883e
better debuggability for interpreted procedures

* libguile/procprop.c (scm_set_procedure_minimum_arity_x): New
  function, allows a user to override a function's arity.
  (scm_i_procedure_arity): Look up in the overrides table first.

* libguile/procprop.h: Add scm_set_procedure_minimum_arity_x.

* module/ice-9/eval.scm (primitive-eval): Override arity of "general
  closures".

* test-suite/tests/procprop.test ("procedure-arity"): Add tests.

Based on a patch from Stefan Israelsson Tampe.  Test based on work by
Patrick Bernaud.
libguile/procprop.c
libguile/procprop.h
module/ice-9/eval.scm
test-suite/tests/procprop.test