programs can now get at their names, and print nicely
authorAndy Wingo <wingo@pobox.com>
Fri, 12 Sep 2008 21:14:46 +0000 (23:14 +0200)
committerAndy Wingo <wingo@pobox.com>
Sat, 13 Sep 2008 12:19:30 +0000 (14:19 +0200)
commite6fea6182305f12db177af855f5c8343b4768c14
treec84fae74eb382ba993ed121cb45dd84770b7f236
parent5dcf8f3555d8a96cc0c028f50c12968a4e238506
programs can now get at their names, and print nicely

* module/system/vm/frame.scm (frame-call-representation)
  (frame-program-name): Rename program-name to frame-program-name, and
  use the program-name if it is available.

* module/system/vm/program.scm (program-bindings): Return #f if there are
  no bindings.
  (program-name): New public procedure.
  (program-bindings-as-lambda-list, write-program): A more useful writer
  for programs.

* libguile/programs.c (scm_bootstrap_programs, program_print): Add a smob
  printer for programs, which dispatches to `write-program'.
libguile/programs.c
module/system/vm/frame.scm
module/system/vm/program.scm