comp.lang.ada
 help / color / mirror / Atom feed
From: xorquewasp@googlemail.com
Subject: Re: GNAT subunit naming
Date: Fri, 14 Mar 2008 13:34:30 -0700 (PDT)
Date: 2008-03-14T13:34:30-07:00	[thread overview]
Message-ID: <ce6186e1-36a4-491f-9c10-d9cc3dee7d62@e25g2000prg.googlegroups.com> (raw)
In-Reply-To: 7ebf5227-e8a1-401d-b52c-81579fe703d2@i12g2000prf.googlegroups.com

Eric Hughes wrote:
> See "package Naming" in the GNAT User's Guide.
>
> Eric

Hello.

I assume you mean section 2.4 "Using other file names".
I also assume that I need to use the Subunit_File_Name
parameter to the Source_File_Name pragma. Unfortunately
it seem no matter how I specify the pragma with a
Subunit_File_Name parameter, the compiler rejects it.

What I would like to be able to do is to specify each subunit
filename explicitly:

pragma source_file_name (hello_device,
  subunit_file_name => "hello_f1.adb");
pragma source_file_name (hello_device,
  subunit_file_name => "hello_f2.adb");
pragma source_file_name (hello_device,
  subunit_file_name => "hello_f3.adb");

If I actually try to do this, however, the compiler simply
gives me an "incorrect argument" error.

What is the correct way to specify filenames for subunits?

thanks.



  reply	other threads:[~2008-03-14 20:34 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
2008-03-14 20:22 ` Eric Hughes
2008-03-14 20:34   ` xorquewasp [this message]
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