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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,eaee5e6761e9a59a X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!69.16.177.246.MISMATCH!cyclone03.ams!news.ams.newshosting.com!npeersf02.ams!newsfet16.ams.POSTED!40385e62!not-for-mail From: Per Sandberg User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT subunit naming References: <7ebf5227-e8a1-401d-b52c-81579fe703d2@i12g2000prf.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@WWWSpace.NET NNTP-Posting-Date: Fri, 14 Mar 2008 18:00:38 EDT Date: Fri, 14 Mar 2008 23:04:45 +0100 Xref: g2news1.google.com comp.lang.ada:20403 Date: 2008-03-14T23:04:45+01:00 List-Id: An advice on the road, breaking the gcc/gnat naming conventions may look like a good idea in the beginning but I could guarantee that I will give you plenty of headache down the road. So even if the component I was building contained 100+ files and they was stored i a VC system where renaming was a real pain in ass (it takes 16 hours just for the renaming) I would take that pain front up without hesitating instead of having a lot of pain down the road (been there done that). /Per S xorquewasp@googlemail.com wrote: > Eric Hughes wrote: >> See "package Naming" in the GNAT User's Guide. >> >> Eric > > Hello. > > I assume you mean section 2.4 "Using other file names". > I also assume that I need to use the Subunit_File_Name > parameter to the Source_File_Name pragma. Unfortunately > it seem no matter how I specify the pragma with a > Subunit_File_Name parameter, the compiler rejects it. > > What I would like to be able to do is to specify each subunit > filename explicitly: > > pragma source_file_name (hello_device, > subunit_file_name => "hello_f1.adb"); > pragma source_file_name (hello_device, > subunit_file_name => "hello_f2.adb"); > pragma source_file_name (hello_device, > subunit_file_name => "hello_f3.adb"); > > If I actually try to do this, however, the compiler simply > gives me an "incorrect argument" error. > > What is the correct way to specify filenames for subunits? > > thanks.