C (151/207)

From:Andrew Bell
Date:22 Dec 99 at 22:23:01
Subject:Re: Version String, CPU detection

From: Andrew Bell <andrew.ab2000@bigfoot.com>

Hi Fritsch,

On 22-Dec-99 you wrote: [amiga-c] Version String, CPU detection

> From: Fritsch Alexander <Alexander.Fritsch@icn.siemens.de>
>
> Hello,
> could someone tell me how the format of a version string has to be?

If you have the NDK 3.1 read the text file "v38_v39_os_changes" it
gives you some guidelines on the format. The NDK 3.1 is available on
the Amiga Developer CD.

I've included a snippet of the text below:

----------------------------------------------

There has been some confusion about what the format of version strings
are. The exact format is detailled in the Amiga User Interface Style
Guide
on page 110. The format is:

$VER: <name> <version>.<revision> (dd.mm.yy)

The string starts with $VER: followed by a space, followed by <name>.
<name> is the name of the program. <name> can NOT contain any spaces.
You can use underscores to achieve a similar effect.

After <name> comes a single space, followed by <version>. <version>
is
the major version number for the program. There should be no leading
zeros.

After <version> comes a single space, followed by <revision>.
<revision>
is the minor version number for the program. There should be no
leading
zeros.

Following the revision number comes a space, and then the date. The
date
is specified in numeric form only, with no leading zeros on any of the
components. First comes the day of the month, then the month, then
the
two digits year. In the future, a four digit year format will also be
supported, but not yet.

Embedding a version string in the exact format described above will
let
the C/Version command find the version string. In the future, there
will
be a system call to enable applications, and other system tools, to
obtain
the version information from files easily.

Regards, Andrew Bell.



+----------------------------------------+
email: mailto:andrew.ab2000@bigfoot.com or
mailto:andrew@ab2000.prestel.co.uk
web: http://www2.prestel.co.uk/ab2000
+----------------------------------------+
"The Black Hand keeps the mages *very* happy..." -- Sidieu