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.


|