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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,6458d1ee91b224ec X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII X-Received: by 10.180.95.97 with SMTP id dj1mr5211104wib.4.1361523360748; Fri, 22 Feb 2013 00:56:00 -0800 (PST) MIME-Version: 1.0 Path: g1ni25885wig.0!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newspeer1.nac.net!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-hub.siol.net!news.mi.ras.ru!goblin2!goblin.stu.neva.ru!weretis.net!feeder4.news.weretis.net!gandalf.srv.welterde.de!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: chopping Ada source that have preprocessor symbols in them Date: Fri, 15 Feb 2013 19:10:43 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <5111a9d5$0$6567$9b4e6d93@newsspool3.arcor-online.net> <85txpnm1vp.fsf@stephe-leake.org> <5114fb61$0$6561$9b4e6d93@newsspool4.arcor-online.net> <85ehgqkxnf.fsf@stephe-leake.org> <51168e7e$0$6566$9b4e6d93@newsspool3.arcor-online.net> <85r4khdfm3.fsf@stephe-leake.org> <511e17c3$0$9520$9b4e6d93@newsspool1.arcor-online.net> <511E64AB.8030805@obry.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1360977046 26905 69.95.181.76 (16 Feb 2013 01:10:46 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 16 Feb 2013 01:10:46 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Date: 2013-02-15T19:10:43-06:00 List-Id: "Pascal Obry" wrote in message news:511E64AB.8030805@obry.net... > Le 15/02/2013 12:11, Georg Bauhaus a �crit : >> What, twist Ada to meet GNAT requirements, or change the procedures >> in the foreign organization? :-) :-) :-) > > Well AFAIK the actual representation of an Ada source is outside of the > Ada standard. So nothing to twist there :) That's not really true anymore for Ada 2012: compilers are required to take source files represented in UTF-8 with a direct mapping to the characters described in the Standard. And the Standard definitely describes multiple units in a file. Of course, exactly the steps needed to support those source files isn't described, and it could be long. I sympathize with Georg's problem, but the point the Stephen made is well-taken: if modifying a file containing multiple units causes too much recompilation, then you have to split the file into several units. Certainly, I do that occassionally for Janus/Ada development -- usually things compile fast enough that it doesn't matter -- but if it starts to become annoying, I don't blame my tools working as designed, I blame my own sub-optimal choice of organization. (And the use of a preprocessor is always suboptimal. It's much better to have that managed as part of version control, by selecting files specifically for particular targets -- but I've never seen a version control system that does that properly -- they all assume the use of preprocessors. For RRS, I built a front-end that adds such structure to the versioning (CVS is the back-end), but it's pretty clunky and never was turned into a product.) Randy.