help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] [bug] Line numbers not reported at start of blocks


From: Mark Bush
Subject: Re: [Help-smalltalk] [bug] Line numbers not reported at start of blocks
Date: Sat, 31 May 2014 22:22:27 +0100

On 10 May 2014, at 17:25, Mark Bush <address@hidden> wrote:
> At the start of a block, a line number bytecode is not generated.  This
> is compounded when blocks contain only statements that are messages to
> blocks or when blocks are stored for later evaluation.

I just noticed that the patch I provided seems not to have made it, so here it 
is...

--- a/libgst/byte.c
+++ b/libgst/byte.c
@@ -151,6 +151,8 @@ _gst_line_number (int n, int flags)
            {
              _gst_compiler_state->prev_line = n;
              next_line_number = n - _gst_compiler_state->line_offset;
+             if (!_gst_omit_line_numbers)
+               compile_byte (LINE_NUMBER_BYTECODE, next_line_number);
            }
        }
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]