Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Re: GNAT subuni...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 8 Topic 5602 of 5831
Post > Topic >>

Re: GNAT subunit naming

by "Dmitry A. Kazakov" <mailbox@[EMAIL PROTECTED] > Mar 14, 2008 at 08:01 PM

On Fri, 14 Mar 2008 11:35:11 -0700 (PDT), xorquewasp@[EMAIL PROTECTED]
 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
 




 8 Posts in Topic:
GNAT subunit naming
xorquewasp@[EMAIL PROTECT  2008-03-14 11:35:11 
Re: GNAT subunit naming
"Dmitry A. Kazakov&q  2008-03-14 20:01:26 
Re: GNAT subunit naming
xorquewasp@[EMAIL PROTECT  2008-03-14 12:10:12 
Re: GNAT subunit naming
"Jeffrey R. Carter&q  2008-03-14 21:25:43 
Re: GNAT subunit naming
Eric Hughes <eric.eh9@  2008-03-14 13:22:07 
Re: GNAT subunit naming
xorquewasp@[EMAIL PROTECT  2008-03-14 13:34:30 
Re: GNAT subunit naming
Per Sandberg <per.sand  2008-03-14 23:04:45 
Re: GNAT subunit naming
xorquewasp@[EMAIL PROTECT  2008-03-14 14:49:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 20:52:05 CDT 2008.