On Mon, 3 Dec 2007 05:16:13 -0800 (PST), Zero <ch********@web.de>
wrote:
is it possible to change the format of __FILE__ + __DATE__,
for example instead of hh:mm:ss ss:mm:hh?
Not in (standard) C, but <OTfor make (and perhaps some other build
systems) on some systems you can do something like:
c89 -DMYDATE=`date +%blahbah` otherflagsandfiles
Filenames are somewhat harder in general because essentially all
nontrivial translation units will involve more than one source file.
Also on non-Unix systems there is variation in the preferred and even
allowed syntaxes of filenames/pathnames/etc. You may have to punt on
these issues, or at least limit your supported platforms.
But if what you want is some component and/or version identifier(s)
that are different from the standard ones, just make your own.
- formerly david.thompson1 || achar(64) || worldnet.att.net