RTL programs print with their name
authorAndy Wingo <wingo@pobox.com>
Sun, 5 May 2013 16:26:53 +0000 (18:26 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 9 Jun 2013 17:52:10 +0000 (19:52 +0200)
commite65f80af42aefe13fe870b92b912cfd0156a1ac1
tree483f3286e99848cd89a995c085c598920604b8e9
parente2cbf527c48fba803ef0bada712c5514f45ec4e4
RTL programs print with their name

* libguile/print.c (iprin1): Use scm_i_program_print for RTL programs
  too.

* libguile/procprop.c (scm_procedure_name): For RTL programs, call
  scm_i_rtl_program_name if there is no override.

* libguile/programs.h:
* libguile/programs.c (scm_i_rtl_program_name): New helper, dispatches
  to (system vm program).
  (scm_i_program_print): For RTL programs, the fallback prints the code
  pointer too.

* module/system/vm/program.scm (rtl-program-name): Use the debug info to
  get an RTL program name.
  (write-program): Work with RTL programs too.

* test-suite/tests/rtl.test ("procedure name"): Add test.
libguile/print.c
libguile/procprop.c
libguile/programs.c
libguile/programs.h
module/system/vm/program.scm
test-suite/tests/rtl.test