[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] [PATCH] pp-defines
From: |
Sergey Korshunoff |
Subject: |
Re: [Tinycc-devel] [PATCH] pp-defines |
Date: |
Sun, 4 Jan 2015 07:53:44 +0300 |
> This patch seems unnecessary as tcc_define_symbol with a third argument NULL
> is
> equivalent as setting it to 1 (#define FOO is the same as #define FOO 1)
I trying to be exactly the same as gcc. And this macros in gcc are
as "1" not ""
2015-01-04 4:03 GMT+03:00, Thomas Preud'homme <address@hidden>:
> Le vendredi 2 janvier 2015, 15:53:39 Sergey Korshunoff a écrit :
>> A values for
>> __STDC__, __STDC_VERSION__, __STDC_HOSTED__
>> on the Linux are defined as in gcc.
>
> Hi Sergey,
>
> This patch seems unnecessary as tcc_define_symbol with a third argument NULL
> is
> equivalent as setting it to 1 (#define FOO is the same as #define FOO 1).
>
> See for yourself:
>
> % cat ~/foo.c
> int foo = __STDC__;
> % tcc -E ~/foo.c
> # 1 "/home/foo/foo.c"
> int foo = 1;
>
> Best regards,
>
> Thomas
>