From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6426898aedaa5880 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!208.49.83.146.MISMATCH!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Pragma for conditional compilation? (Ada 2005 vs. 95) References: <1190879769.361848.188220@22g2000hsm.googlegroups.com> <1190929570.915553.284000@19g2000hsx.googlegroups.com> <4p1jdf.ssa.ln@hunter.axlog.fr> <1190993095.488093.244130@r29g2000hsg.googlegroups.com> <1v8jdf.rc4.ln@hunter.axlog.fr> <1191002053.9585.66.camel@kartoffel> <46FD45BA.5030205@obry.net> From: Stephen Leake Date: Sat, 29 Sep 2007 06:29:48 -0400 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:b1Pkxm6GhrPZnZm+GeohX1QBkr4= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 15e9746fe291ce05e48ed17296 Xref: g2news2.google.com comp.lang.ada:2217 Date: 2007-09-29T06:29:48-04:00 List-Id: Simon Wright writes: > Pascal Obry 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