From: xorquewasp@googlemail.com
Subject: Re: GNAT subunit naming
Date: Fri, 14 Mar 2008 14:49:49 -0700 (PDT)
Date: 2008-03-14T14:49:49-07:00 [thread overview]
Message-ID: <a3848e66-9b20-491b-8a05-fa47a1771af5@s19g2000prg.googlegroups.com> (raw)
In-Reply-To: r3CCj.22769$TT4.8480@attbi_s22
Jeffrey R. Carter wrote:
> xorquewasp@googlemail.com 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.
next prev parent reply other threads:[~2008-03-14 21:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2008-03-14 20:22 ` Eric Hughes
2008-03-14 20:34 ` xorquewasp
2008-03-14 22:04 ` Per Sandberg
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox