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 8 of 8 Topic 5602 of 5831
Post > Topic >>

Re: GNAT subunit naming

by xorquewasp@[EMAIL PROTECTED] Mar 14, 2008 at 02:49 PM

Jeffrey R. Carter wrote:
> xorquewasp@[EMAIL PROTECTED]
 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.
 




 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:48:37 CDT 2008.