tweaks for printing programs
authorAndy Wingo <wingo@pobox.com>
Sat, 13 Sep 2008 11:14:45 +0000 (13:14 +0200)
committerAndy Wingo <wingo@pobox.com>
Sat, 13 Sep 2008 12:19:30 +0000 (14:19 +0200)
commit0ba8bb7143204fb8f2b99c80ff62b16bed4b56fd
treeec219374f9e3b81ff416b7a159706c8e0e5f189f
parente6fea6182305f12db177af855f5c8343b4768c14
tweaks for printing programs

* module/system/vm/program.scm (program-bindings-as-lambda-list): Handle
  the bindings-is-null case too -- not sure how it comes about, though. A
  thunk with no let, perhaps.
  (write-program): Another default for the name: the source location at
  which it was defined.

* libguile/programs.c (program_print): Add some "logic" to stop doing
  detailed prints if one print had a nonlocal exit -- preventing
  exceptions in backtraces.
libguile/programs.c
module/system/vm/program.scm