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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!62.216.30.27.MISMATCH!newsgate.cistron.nl!xs4all!feeder.news-service.com!news.astraweb.com!border2.a.newsrouter.astraweb.com!xlned.com!feeder1.xlned.com!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: GNAT subunit naming Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Fri, 14 Mar 2008 20:01:26 +0100 Message-ID: NNTP-Posting-Date: 14 Mar 2008 20:01:26 CET NNTP-Posting-Host: eec99908.newsspool2.arcor-online.net X-Trace: DXC=eV4KPX8HQ<_PU8j_I0DN6_A9EHlD;3YcR4Fo<]lROoRQ8kF On Fri, 14 Mar 2008 11:35:11 -0700 (PDT), xorquewasp@googlemail.com wrote: > Hi. > > We have these files: > > -- hello.ads > package hello_device is > procedure func1; > procedure func2; > procedure func3; > end; > > -- hello.adb > package body hello_device is > procedure func1 is separate; > procedure func2 is separate; > procedure func3 is separate; > end; > > -- hello_f1.adb > with ada.text_io; > > separate(hello_device) > > procedure func1 is > begin > ada.text_io.put("func1"); > ada.text_io.new_line; > end func1; > > -- hello_f2.adb > with ada.text_io; > > separate(hello_device) > > procedure func2 is > begin > ada.text_io.put("func2"); > ada.text_io.new_line; > end func2; > > -- hello_f3.adb > with ada.text_io; > > separate(hello_device) > > procedure func3 is > begin > ada.text_io.put("func3"); > ada.text_io.new_line; > end func3; > > Now, I can tell GNAT that the files hello.ads and hello.adb > provide the package 'hello_device' just fine with a > couple of Source_File_Name pragmas but I can't seem to > work out how to tell GNAT that hello_f[123].adb provide > the subunits of this package. hello_device-func1.adb hello_device-func2.adb hello_device-func3.adb ? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de