diff options
author | Andy Wingo <wingo@pobox.com> | 2010-02-22 22:41:34 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2010-02-22 22:41:34 +0100 |
commit | 76e3816281cf6c406ef6f01907ce29401c8ff455 (patch) | |
tree | ce7ad6b8cd19266ef599ccc03f9a9637a96b3dd4 /libguile/programs.c | |
parent | 2d026f04cc581915f62b1f2f3be2f27026ee383e (diff) | |
download | guile-76e3816281cf6c406ef6f01907ce29401c8ff455.tar.gz |
tweaks to default program printer
* libguile/programs.c (scm_i_program_print): Instead of printing the
address of the objcode, print the address of the program itself. Also
for continuations.
Diffstat (limited to 'libguile/programs.c')
-rw-r--r-- | libguile/programs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/programs.c b/libguile/programs.c index ac35e3c10..8ce9fe147 100644 --- a/libguile/programs.c +++ b/libguile/programs.c @@ -83,13 +83,13 @@ scm_i_program_print (SCM program, SCM port, scm_print_state *pstate) { /* twingliness */ scm_puts ("#<continuation ", port); - scm_uintprint (SCM_CELL_WORD_1 (program), 16, port); + scm_uintprint (SCM_UNPACK (program), 16, port); scm_putc ('>', port); } else if (scm_is_false (write_program) || print_error) { scm_puts ("#<program ", port); - scm_uintprint (SCM_CELL_WORD_1 (program), 16, port); + scm_uintprint (SCM_UNPACK (program), 16, port); scm_putc ('>', port); } else |