mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
* 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.
This commit is contained in:
parent
701191ba9c
commit
d0defdf3aa
4 changed files with 13 additions and 3 deletions
1
THANKS
1
THANKS
|
@ -8,6 +8,7 @@ Bug reports and fixes from:
|
|||
|
||||
Greg Badros
|
||||
Aleksandar Bakic
|
||||
Per Bothner
|
||||
Marcus Daniels
|
||||
Fred Fish
|
||||
Jesse N. Glick
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
1998-03-30 Mikael Djurfeldt <mdj@nada.kth.se>
|
||||
|
||||
* 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.
|
||||
|
||||
1998-03-28 Mikael Djurfeldt <mdj@nada.kth.se>
|
||||
|
||||
* throw.c (handler_message): Print message on current error port
|
||||
|
|
|
@ -83,9 +83,9 @@ display_header (source, port)
|
|||
{
|
||||
scm_prin1 (fname, port, 0);
|
||||
scm_putc (':', port);
|
||||
scm_prin1 (scm_source_property (source, scm_i_line), port, 0);
|
||||
scm_prin1 (scm_source_property (source, scm_i_line) + 1, port, 0);
|
||||
scm_putc (':', port);
|
||||
scm_prin1 (scm_source_property (source, scm_i_column), port, 0);
|
||||
scm_prin1 (scm_source_property (source, scm_i_column) + 1, port, 0);
|
||||
}
|
||||
else
|
||||
scm_puts ("ERROR", port);
|
||||
|
|
|
@ -258,7 +258,7 @@ scm_add_to_port_table (port)
|
|||
scm_port_table[scm_port_table_size]->revealed = 0;
|
||||
scm_port_table[scm_port_table_size]->stream = 0;
|
||||
scm_port_table[scm_port_table_size]->file_name = SCM_BOOL_F;
|
||||
scm_port_table[scm_port_table_size]->line_number = 1;
|
||||
scm_port_table[scm_port_table_size]->line_number = 0;
|
||||
scm_port_table[scm_port_table_size]->column_number = 0;
|
||||
return scm_port_table[scm_port_table_size++];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue