summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Djurfeldt <djurfeldt@nada.kth.se>1998-03-30 19:31:52 +0000
committerMikael Djurfeldt <djurfeldt@nada.kth.se>1998-03-30 19:31:52 +0000
commit0e929db3d1b632a9f0892c78b2b2acbedce196f1 (patch)
tree61b29dfba2da07188c743621c2d5a6792ff7d8fa
parentd0defdf3aa70fc4aa68f3250a1fcaa2e51dbca3b (diff)
downloadguile-0e929db3d1b632a9f0892c78b2b2acbedce196f1.tar.gz
* ports.c (scm_add_to_port_table): First line is now line 0
(was 1). (Interface changed according to suggestion by Per Bothner.) * backtrace.c (display_header): Add 1 to line and column numbers when presenting them to the user.
-rw-r--r--libguile/backtrace.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libguile/backtrace.c b/libguile/backtrace.c
index 042efe3cc..89da2d093 100644
--- a/libguile/backtrace.c
+++ b/libguile/backtrace.c
@@ -83,9 +83,13 @@ display_header (source, port)
{
scm_prin1 (fname, port, 0);
scm_putc (':', port);
- scm_prin1 (scm_source_property (source, scm_i_line) + 1, port, 0);
+ scm_intprint (SCM_INUM (scm_source_property (source, scm_i_line)) + 1,
+ 10,
+ port);
scm_putc (':', port);
- scm_prin1 (scm_source_property (source, scm_i_column) + 1, port, 0);
+ scm_intprint (SCM_INUM (scm_source_property (source, scm_i_column)) + 1,
+ 10,
+ port);
}
else
scm_puts ("ERROR", port);