comp.lang.ada
 help / color / mirror / Atom feed
* GNAT subunit naming
@ 2008-03-14 18:35 xorquewasp
  2008-03-14 19:01 ` Dmitry A. Kazakov
  2008-03-14 20:22 ` Eric Hughes
  0 siblings, 2 replies; 8+ messages in thread
From: xorquewasp @ 2008-03-14 18:35 UTC (permalink / raw)


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.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-03-14 22:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-14 18:35 GNAT subunit naming xorquewasp
2008-03-14 19:01 ` Dmitry A. Kazakov
2008-03-14 19:10   ` xorquewasp
2008-03-14 21:25     ` Jeffrey R. Carter
2008-03-14 21:49       ` xorquewasp
2008-03-14 20:22 ` Eric Hughes
2008-03-14 20:34   ` xorquewasp
2008-03-14 22:04     ` Per Sandberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox