[Top][All Lists]

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

RE: Versioning (was Re: [Tinycc-devel] TCC 0.9.25 is out)

From: Christian Jullien
Subject: RE: Versioning (was Re: [Tinycc-devel] TCC 0.9.25 is out)
Date: Fri, 22 May 2009 12:16:19 +0200


It's ok to have a TCC_VERSION human readable but it's also *very* important
to have computer readable cste to adapt code depending on a specific version
if you (or someone else) have to support different versions.

#if defined(__TINYC__)
#if (__TINYC__ == 1)
/* 0.9.25 or below, XXX feature was missing, use YYY instead but with a
lower precision */
#elif (__TINYC__ >= 926 || __TINYC__ <= 928)
/* XXX was implemented but hangs if argument is negative ... */
/* 0.9.29 or above, XXX is fixed for good */
/* ANSI C default behavior */

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Anton Rolls
Sent: Friday, May 22, 2009 11:49
To: address@hidden
Subject: Versioning (was Re: [Tinycc-devel] TCC 0.9.25 is out)

That is a good page, but I disagree that it is
better to use a define like that.
It is much better to use something more modern,
more human-readable, as TCC has now.
If the programs have difficulty reading something
in that format, change the programs, don't try to
change the human beings.


Christian Jullien wrote:
> Good work!
> Small request:
> I know that TCC_VERSION is defined as "0.9.25" but I would be better to
> something like
> #define __TINYC__ 925
> As with other compilers (see this *nice* page:
> http://predef.sourceforge.net/preos.html)
> Instead of just 1
> #include <stdio.h>
> int
> main(int argc, char *argv[])
> {
>       printf("%d\n", __TINYC__ );
> }
> If done, please inform predef.sourceforge.net of this change.
> Christian

Tinycc-devel mailing list
Orange vous informe que cet  e-mail a ete controle par l'anti-virus mail. 
Aucun virus connu a ce jour par nos services n'a ete detecte.

reply via email to

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