comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Pragma for conditional compilation? (Ada 2005 vs. 95)
Date: Sat, 29 Sep 2007 06:29:48 -0400
Date: 2007-09-29T06:29:48-04:00	[thread overview]
Message-ID: <uhcldlq77.fsf@stephe-leake.org> (raw)
In-Reply-To: m2bqbmlfpd.fsf@mac.com

Simon Wright <simon.j.wright@mac.com> writes:

> Pascal Obry <pascal@obry.net> writes:
>
>> Note the double underscore to be sure that those files are not found
>> automatically by the project file when storing the OS specific units
>> with all the other sources.
>
> I never realised you could do this .. and I thought I had read the
> friendly manual, too. 

Me, too.

The GNAT user's guide says:

    By default, if neither the attribute `Source_Files' nor the
    attribute `Source_List_File' is given an explicit value, then each
    file in the source directories that conforms to the project's
    naming scheme (*note Naming Schemes::) is an immediate source of
    the project.

It just never occurred to me to use a file name for an Ada file that
did _not_ follow the naming convention!

I think I was implicitly assuming that any file with an .ads or .adb
extension would be accepted by gnatmake, and since that's also the
rule Emacs uses, I would not use a different extension for this
purpose.

But the actual gnatmake rule is stricter than that, so there are other
ways to violate it, while keeping the extension.

-- 
-- Stephe



  parent reply	other threads:[~2007-09-29 10:29 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-27  7:56 Pragma for conditional compilation? (Ada 2005 vs. 95) Jerry
2007-09-27  9:31 ` Georg Bauhaus
2007-09-27 16:59   ` Pascal Obry
2007-09-27 21:56     ` Jerry
2007-09-27  9:52 ` Stephen Leake
2007-09-27  9:58 ` Brian Drummond
2007-09-27 15:26 ` anon
2007-09-27 21:46   ` Jerry
2007-09-28  4:55     ` Jeffrey R. Carter
2007-09-28 12:15       ` Jeffrey Creem
2007-09-28 14:06         ` Jean-Pierre Rosen
2007-09-28 15:24           ` Ludovic Brenta
2007-09-28 16:08             ` Jean-Pierre Rosen
2007-09-28 17:54               ` Georg Bauhaus
2007-09-28 18:19                 ` Pascal Obry
2007-09-28 20:02                   ` Stefan Bellon
2007-09-28 20:14                     ` Pascal Obry
2007-09-28 20:26                       ` Stefan Bellon
2007-09-29 10:24                     ` Stephen Leake
2007-09-28 20:04                   ` Simon Wright
2007-09-28 20:11                     ` Pascal Obry
2007-09-29 10:29                     ` Stephen Leake [this message]
2007-09-29 10:18               ` Stephen Leake
2007-09-28 18:07     ` anon
2007-09-29 22:13 ` Jerry
2007-09-30 10:54   ` Stephen Leake
replies disabled

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