Re: [Tinycc-devel] tcc now displays the right system name with -v or -vv

2016-10-15 Thread Michael B. Smith
Sorry. I really wasn't serious.

I've known Matt for over 20 years, although you would probably have to remind 
him about "dcc" and "AmigaUUCP" for him to remember me. :)

I think his take on the kernel is very interesting. But I haven't had time to 
get involved - yet.

From: Tinycc-devel 
[mailto:tinycc-devel-bounces+michael=theessentialexchange@nongnu.org] On 
Behalf Of Christian Jullien
Sent: Sunday, October 16, 2016 12:15 AM
To: tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] tcc now displays the right system name with -v or 
-vv

Right, Google pretends it's 'DragonFly BSD' with a space. Done in mod. Thanks.

From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On 
Behalf Of Michael B. Smith
Sent: samedi 15 octobre 2016 19:54
To: tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] tcc now displays the right system name with -v or 
-vv

Shouldn't it be DragonFlyBSD ?? :)

From: Tinycc-devel 
[mailto:tinycc-devel-bounces+michael=theessentialexchange@nongnu.org] On 
Behalf Of Christian Jullien
Sent: Saturday, October 15, 2016 3:53 AM
To: tinycc-devel@nongnu.org
Subject: [Tinycc-devel] tcc now displays the right system name with -v or -vv

Please feel free to add your favorite system here :

--- 
a/tcc.c
+++ 
b/tcc.c
@@ 
-56,8
 
+56,21
 @@ static void display_info(TCCState *s, int what)
 #endif
 #ifdef TCC_TARGET_PE
 " Windows"
-#else
+#elif defined(__APPLE__)
+/* Current Apple OS name as of 2016 */
+" macOS"
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+" FreeBSD"
+#elif defined(__DragonFly__)
+" DragonFly"
+#elif defined(__NetBSD__)
+" NetBSD"
+#elif defined(__OpenBSD__)
+" OpenBSD"
+#elif defined(__linux__)
 " Linux"
+#else
+" Unidentified system"
 #endif
 ")\n", TCC_VERSION);
 break;


https://sourceforge.net/p/predef/wiki/OperatingSystems/ is a great help to have 
official identification macros.

Christian
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] tcc now displays the right system name with -v or -vv

2016-10-15 Thread Christian Jullien
Right, Google pretends it's 'DragonFly BSD' with a space. Done in mod.
Thanks.

 

From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org]
On Behalf Of Michael B. Smith
Sent: samedi 15 octobre 2016 19:54
To: tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] tcc now displays the right system name with -v
or -vv

 

Shouldn't it be DragonFlyBSD ?? J

 

From: Tinycc-devel
[mailto:tinycc-devel-bounces+michael=theessentialexchange@nongnu.org] On
Behalf Of Christian Jullien
Sent: Saturday, October 15, 2016 3:53 AM
To: tinycc-devel@nongnu.org
Subject: [Tinycc-devel] tcc now displays the right system name with -v or
-vv

 

Please feel free to add your favorite system here :

 

--- a/tcc.c
 

+++ b/tcc.c
 

@@
 -56,8
 +56,21 @@ static void display_info(TCCState *s, int what)

 #endif

 #ifdef TCC_TARGET_PE

 " Windows"

-#else

+#elif defined(__APPLE__)

+/* Current Apple OS name as of 2016 */

+" macOS"

+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)

+" FreeBSD"

+#elif defined(__DragonFly__)

+" DragonFly"

+#elif defined(__NetBSD__)

+" NetBSD"

+#elif defined(__OpenBSD__)

+" OpenBSD"

+#elif defined(__linux__)

 " Linux"

+#else

+" Unidentified system"

 #endif

 ")\n", TCC_VERSION);

 break;

 

 

https://sourceforge.net/p/predef/wiki/OperatingSystems/ is a great help to
have official identification macros.

 

Christian

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] tcc now displays the right system name with -v or -vv

2016-10-15 Thread Michael B. Smith
Shouldn't it be DragonFlyBSD ?? :)

From: Tinycc-devel 
[mailto:tinycc-devel-bounces+michael=theessentialexchange@nongnu.org] On 
Behalf Of Christian Jullien
Sent: Saturday, October 15, 2016 3:53 AM
To: tinycc-devel@nongnu.org
Subject: [Tinycc-devel] tcc now displays the right system name with -v or -vv

Please feel free to add your favorite system here :

--- 
a/tcc.c
+++ 
b/tcc.c
@@ 
-56,8
 
+56,21
 @@ static void display_info(TCCState *s, int what)
 #endif
 #ifdef TCC_TARGET_PE
 " Windows"
-#else
+#elif defined(__APPLE__)
+/* Current Apple OS name as of 2016 */
+" macOS"
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+" FreeBSD"
+#elif defined(__DragonFly__)
+" DragonFly"
+#elif defined(__NetBSD__)
+" NetBSD"
+#elif defined(__OpenBSD__)
+" OpenBSD"
+#elif defined(__linux__)
 " Linux"
+#else
+" Unidentified system"
 #endif
 ")\n", TCC_VERSION);
 break;


https://sourceforge.net/p/predef/wiki/OperatingSystems/ is a great help to have 
official identification macros.

Christian
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel