avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] User-visible library version numbers


From: Russell Shaw
Subject: Re: [avr-libc-dev] User-visible library version numbers
Date: Thu, 25 Aug 2005 12:15:41 +1000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050802 Debian/1.7.10-1

Joerg Wunsch wrote:
It has been requested every now and then that there be a user-visible
library version number.  I'm about to start this with the impending
release of the 1.4 branch, so here are a few questions.

What to put in there?

. __AVR_LIBC_VERSION__ "1.4.0"  /* a string */
. __AVR_LIBC_MAJOR__   1        /* three integers */
. __AVR_LIBC_MINOR__   4
. __AVR_LIBC_TINY__    0
  or
. __AVR_LIBC_RELEASE__ 0x010400 /* a single integer */

The single integer approach only needs one macro, but it's a bit more
cumbersome to compare e.g. a major version only (but still possible).
The three integer approach requires more complicated preprocessor #if
statements if you e.g. want to do something only for version 1.4.3 and
above.

Maybe the release date could be added as an extra macro: 050825
for Aug. 5th, 2005.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]