From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: C Macros and their equivalent in Ada
Date: Fri, 12 Sep 2008 20:33:06 -0700
Date: 2008-09-12T20:33:06-07:00 [thread overview]
Message-ID: <rv6dnZJm5of3qVbVnZ2dnUVZ_tudnZ2d@comcast.com> (raw)
In-Reply-To: f0560361-31c2-4a3d-851c-639cdfc5ac46@i76g2000hsf.googlegroups.com
<RasikaSrinivasan@gmail.com> wrote in message
news:f0560361-31c2-4a3d-851c-639cdfc5ac46@i76g2000hsf.googlegroups.com...
> are there Ada equivalents of the C macros like :
>
> __DATE__, __TIME__
>
> My searches have not revealed anything. have i missed any obvious
> pragmas?
>
> thanks, srini
Years ago I was looking for exactly the same thing on a Windows target. So
far as I could find, Ada doesn't have a standard way of accessing this
information.
The reason I was looking for the information is so that a program could
report when it was built.
I found an alternative that works on Windows. There is a windows API
function GetFileVersionInfo that may be used to obtain the date and time the
executable was linked.
If this happens to be what you're looking for, let me know and I can send
(or post) source code.
Regards,
Steve
prev parent reply other threads:[~2008-09-13 3:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-09 10:43 C Macros and their equivalent in Ada RasikaSrinivasan
2008-09-09 13:45 ` Colin Paul Gloster
2008-09-09 16:33 ` Ray Blaak
2008-09-09 18:54 ` RasikaSrinivasan
2008-09-10 0:16 ` Ray Blaak
2008-09-09 14:11 ` Jeffrey R. Carter
2008-09-09 14:39 ` Ludovic Brenta
2008-09-09 20:57 ` Maciej Sobczak
2008-09-10 6:57 ` Per Sandberg
2008-09-10 19:22 ` Keith Thompson
2008-09-09 15:11 ` Adam Beneschan
2008-09-13 3:33 ` Steve [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox