Talk About Network



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 > GNAT subunit na...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 5602 of 5697
Post > Topic >>

GNAT subunit naming

by xorquewasp@[EMAIL PROTECTED] Mar 14, 2008 at 11:35 AM

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.

Any help would be appreciated.




 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 Wed May 14 10:59:52 CDT 2008.