tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] tcc optional argument as in C++


From: David Mertens
Subject: Re: [Tinycc-devel] tcc optional argument as in C++
Date: Mon, 20 Feb 2012 08:12:39 -0600

I agree with Christian. However, if the need is great, why not write your own compiler that uses libtcc and handles that preprocessing for you? You could copy the current tcc.c and modify it in a handful of places and you'd have your own derived compiler. Note that I'm not suggesting that you fork tcc and hack on this feature. Rather, start a new project that clearly depends on and derives from tcc/libtcc which has just the .c file and a Makefile.

A tcclet, so to speak. :-)

David

On Mon, Feb 20, 2012 at 8:06 AM, Christian Jullien <address@hidden> wrote:

As long as my opinion matters, I prefer to reserve C++ features to C++
compilers.
In order to keep tcc small and simple, I prefer to stick to C only features.
I think it's better to implement C11 features than to hack few C++ goodies.

M2c

Christian

-----Original Message-----
From: tinycc-devel-bounces+eligis=address@hidden
[mailto:tinycc-devel-bounces+eligis=address@hidden] On Behalf Of
address@hidden
Sent: lundi 20 février 2012 14:37
To: address@hidden
Subject: [Tinycc-devel] tcc optional argument as in C++

Hi,
i want/need to have optional argument declared inside the function prototype
only. I have two options for doing it. Write a preprocessor that does the
mod or modify the Tcc preprocessor and adding a commandline switch to it in
order to accept the relaxed parsing or if you think, eventually without
commandline switch. What solution do you prefer that i implement ?



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


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



--
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan


reply via email to

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