From: Per Sandberg <per.s.sandberg@bahnhof.se>
Subject: Re: ALI Files Cross-References Inconsistency?
Date: Fri, 14 Aug 2020 18:35:12 +0200 [thread overview]
Message-ID: <43zZG.1199829$rLg.1003039@fx49.ams4> (raw)
In-Reply-To: <20b0ed7c-15f3-4a40-b7f6-cf80a4ec4e0do@googlegroups.com>
Just a comment, <TAB>s in source text is a common root of confusion
since every editor indents <TAB>s in some way.
/P
On 8/14/20 10:11 AM, Leandro Ribeiro wrote:
> Am Donnerstag, 13. August 2020 19:17:55 UTC+2 schrieb Egil H H:
>> On Thursday, August 13, 2020 at 5:24:47 PM UTC+2, Leandro Ribeiro wrote:
>>>
>>> I would expect every reference to point to the beginning of the symbol, as it is the case with "3K9*excep2".
>>> However, all other references to the symbols from excep2.ads are exactly 4 columns ahead of the "expected point".
>>> And all the references to the symbols from excep2.adb are exactly 12 columns ahead of the "expected point".
>>>
>>>
>>> Question:
>>> Is this a bug?
>>> Or did a miss any rule about adding offsets to the references?
>>>
>>
>> Did you by any chance use the TAB character as delimiter? There's a fair chance it would count as 8 when calculating the position
>
> Bingo!
>
> My text editor counts tabs as 4 columns.
> The offsets were 4*NumberOfTabs.
>
> I replaced the tabs with spaces, and the ALI file is perfect now.
>
> Thanks a lot!
>
next prev parent reply other threads:[~2020-08-14 16:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-13 15:24 ALI Files Cross-References Inconsistency? Leandro Ribeiro
2020-08-13 15:55 ` Dennis Lee Bieber
2020-08-13 21:18 ` Simon Wright
2020-08-14 19:45 ` Dennis Lee Bieber
2020-08-13 17:17 ` Egil H H
2020-08-14 8:11 ` Leandro Ribeiro
2020-08-14 16:35 ` Per Sandberg [this message]
2020-08-14 17:23 ` Simon Wright
2020-08-15 7:56 ` J-P. Rosen
2020-08-14 19:47 ` Dennis Lee Bieber
2020-09-25 16:16 ` Stephen Leake
2020-09-25 19:35 ` Dmitry A. Kazakov
2020-09-25 22:33 ` Stephen Leake
2020-09-26 8:03 ` Dmitry A. Kazakov
2020-09-30 9:53 ` wj46633
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox