chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] Fix for #568


From: Felix
Subject: Re: [Chicken-hackers] [PATCH] Fix for #568
Date: Sun, 03 Feb 2013 22:15:26 +0100 (CET)

From: Peter Bex <address@hidden>
Subject: Re: [Chicken-hackers] [PATCH] Fix for #568
Date: Sun, 3 Feb 2013 21:05:43 +0100

> On Sun, Feb 03, 2013 at 12:00:42PM -0800, Kon Lovett wrote:
>> On Feb 3, 2013, at 11:50 AM, Peter Bex <address@hidden> wrote:
>> > That reminds me: in posixunix.scm the read-line code sets some slot
>> > number 5.  I was unable to figure out what this was for.  It seems to
>> > update it to the current position in the buffer while it's scanning and
>> > then resets it to 0 at the end, but this isn't used anywhere I could see.
>> 
>> ;; Port (wordblock)
>> 
>> ; Port layout:
>> ;
>> ; 0    FP (special - FILE *)
>> ; 1    input/output (bool)
>> ; 2    class (vector, see Port-class)
>> ; 3    name (string)
>> ; 4    row (fixnum)
>> ; 5    col (fixnum)
>> ; 6    EOF (bool)
>> ; 7    type (symbol)
>> ; 8    closed (bool)
>> ; 9    data
>> ; 10-15       reserved, port class specific
> 
> How silly of me!  Thanks, Kon.
> 
> Now the million dollar question is why other ports don't seem to be
> using this anymore.

I think port 4 (line-number) is still kept up-to-date, but it might be
that keeping track of the column was forgotten or considered too much
effort. I can't remember, but it is possibly all my fault.


cheers,
felix



reply via email to

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