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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f0aecf9351d714ac X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!l43g2000hsh.googlegroups.com!not-for-mail From: "RasikaSrinivasan@gmail.com" Newsgroups: comp.lang.ada Subject: Re: C Macros and their equivalent in Ada Date: Tue, 9 Sep 2008 11:54:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: <09eec7f8-f88a-4fa7-9626-2db0455a391a@l43g2000hsh.googlegroups.com> References: NNTP-Posting-Host: 209.104.243.242 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1220986453 8238 127.0.0.1 (9 Sep 2008 18:54:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 9 Sep 2008 18:54:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l43g2000hsh.googlegroups.com; posting-host=209.104.243.242; posting-account=mZyFSQoAAABfOmklsh1d8TPbS2LncUKl User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7692 Date: 2008-09-09T11:54:13-07:00 List-Id: I have a similar solution implemented. thanks. was just trying to figure out if there was anything recent. On Sep 9, 12:33 pm, Ray Blaak wrote: > Colin Paul Gloster writes: > > > On Tue, 9 Sep 2008, RasikaSriniva...@gmail.com wrote: > > |"are there Ada equivalents of the C macros like : | > > | | > > |__DATE__, __TIME__ | > > > How about the function Ada.Calendar.Clock to get the current instant > > The idea is to get the date/time the file was compiled. > > Rasika, what I have often done is generate a source file from my build script > that has the version and build dates baked in. E.g. using ant: > > > > > > > > > package body Version is > > function Version return String is > begin > return "${VERSION}"; > end; > > function Build return String is > begin > return "${yyyyMMdd}"; > end; > end; > > > > Apologies for any errors, but it should get the idea across. > > -- > Cheers, The Rhythm is around me, > The Rhythm has control. > Ray Blaak The Rhythm is inside me, > rAYbl...@STRIPCAPStelus.net The Rhythm has my soul.