[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 |
Anton,
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 ... */
#else
/* 0.9.29 or above, XXX is fixed for good */
#endif
#else
/* ANSI C default behavior */
#endif
-----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.
Regards,
Anton.
Christian Jullien wrote:
> Good work!
>
> Small request:
>
> I know that TCC_VERSION is defined as "0.9.25" but I would be better to
have
> 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
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel
----------------------------------------------------------------------------
-----------
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.
- [Tinycc-devel] TCC 0.9.25 is out, grischka, 2009/05/20
- Re: [Tinycc-devel] TCC 0.9.25 is out, lostgallifreyan, 2009/05/20
- RE: [Tinycc-devel] TCC 0.9.25 is out, Christian Jullien, 2009/05/20
- Versioning (was Re: [Tinycc-devel] TCC 0.9.25 is out), Anton Rolls, 2009/05/22
- RE: Versioning (was Re: [Tinycc-devel] TCC 0.9.25 is out),
Christian Jullien <=
- Re: Versioning (was Re: [Tinycc-devel] TCC 0.9.25 is out), lostgallifreyan, 2009/05/22
- RE: Versioning (was Re: [Tinycc-devel] TCC 0.9.25 is out), Christian Jullien, 2009/05/22
- Re: Versioning (was Re: [Tinycc-devel] TCC 0.9.25 is out), Anton Rolls, 2009/05/23
- RE: Versioning (was Re: [Tinycc-devel] TCC 0.9.25 is out), Christian Jullien, 2009/05/23
- [Tinycc-devel] Re: Versioning, Mark Wooding, 2009/05/22
- RE: [Tinycc-devel] Re: Versioning, Christian Jullien, 2009/05/22
- Re: [Tinycc-devel] Re: Versioning, lostgallifreyan, 2009/05/22