From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6f9ac64c5319a5d9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-22 13:09:16 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-04!supernews.com!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: Subject: Re: GNATing ada files with the wrong extensions. Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 22 Aug 2001 16:08:56 EDT Organization: http://www.newsranger.com Date: Wed, 22 Aug 2001 20:08:56 GMT Xref: archiver1.google.com comp.lang.ada:12286 Date: 2001-08-22T20:08:56+00:00 List-Id: In article , Dale Pennington says... >2) create a gnat.adc file and fill it with a zillion Source_File_Name >pragma's. > >For reference I am using 3.13p at this time, and have read the docs. I was >kinda hoping that there was acutally a method to tell GNAT to treat .1.ada >as the same as .ads and .2.ada as the same as .adb. Hmmmm. That seems simple enough, it ought to be worth attempting to put in when the sources make it to the GCC baseline one fine day. But you do realise that there is more to the convention than that, don't you? For instance, everything has to have the same name as the unit name. Also, you have to use "-" to replace the dot in child packages and separates. If you have files from another system that was library based instead of source based, odds are you have some files that don't quite match their unit names. >Am I missing something obvious, or are 1 and 2 my only options (and if so, >has anyone generated a godd script to perform #2) ? I made a script to do #2 once, but not from the method you used. It instead used the AdaMagic-style ada.lib and unit.map files. At the time, I discovered that Gnat had trouble with large amounts of pragma Source_File_Name's, but that was years ago. It ended up being easier to just browbeat everyone into using Gnat's naming convention. :-( --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com