From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx49.ams4.POSTED!not-for-mail Subject: Re: ALI Files Cross-References Inconsistency? Newsgroups: comp.lang.ada References: <1ab5413e-ac60-4fb7-b3bd-930de3f0fe0do@googlegroups.com> <20b0ed7c-15f3-4a40-b7f6-cf80a4ec4e0do@googlegroups.com> From: Per Sandberg User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20b0ed7c-15f3-4a40-b7f6-cf80a4ec4e0do@googlegroups.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Message-ID: <43zZG.1199829$rLg.1003039@fx49.ams4> X-Complaints-To: abuse@usenet.se NNTP-Posting-Date: Fri, 14 Aug 2020 16:35:12 UTC Organization: usenet.se Date: Fri, 14 Aug 2020 18:35:12 +0200 X-Received-Bytes: 1997 X-Received-Body-CRC: 2178698821 Xref: reader01.eternal-september.org comp.lang.ada:59719 List-Id: Just a comment, s in source text is a common root of confusion since every editor indents 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! >