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,FREEMAIL_FROM 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!postnews.google.com!s19g2000prg.googlegroups.com!not-for-mail From: xorquewasp@googlemail.com Newsgroups: comp.lang.ada Subject: Re: GNAT subunit naming Date: Fri, 14 Mar 2008 14:49:49 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <46e86d34-5ca7-4bac-97f8-1fc05337472a@s13g2000prd.googlegroups.com> NNTP-Posting-Host: 81.86.41.187 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1205531389 11974 127.0.0.1 (14 Mar 2008 21:49:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 14 Mar 2008 21:49:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s19g2000prg.googlegroups.com; posting-host=81.86.41.187; posting-account=D9GNUgoAAAAmg7CCIh9FhKHNAJmHypsp User-Agent: G2/1.0 X-HTTP-UserAgent: gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20401 Date: 2008-03-14T14:49:49-07:00 List-Id: Jeffrey R. Carter wrote: > xorquewasp@googlemail.com wrote: > > Dmitry A. Kazakov wrote: > >> hello_device-func1.adb > >> hello_device-func2.adb > >> hello_device-func3.adb ? > > > > Those are the files that GNAT looks for by default, yes, > > however I would like to know how to tell it to use the > > filenames I specify (hello_f1.adb, hello_f2.adb, etc...). > > Your subunits are named Hello_Device.Func1 and the like. Those are the names to > give to pragma Source_File_Name. Hi. Thanks! I have it now. GNAT accepts the following: pragma source_file_name (hello_device, spec_file_name => "hello.ads"); pragma source_file_name (hello_device, body_file_name => "hello.adb"); pragma source_file_name (hello_device.func1, body_file_name => "hello_f1.adb"); pragma source_file_name (hello_device.func2, body_file_name => "hello_f2.adb"); pragma source_file_name (hello_device.func3, body_file_name => "hello_f3.adb"); Thanks very much.