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

2012-02-20 Thread Lioric Z3
If by optional arguments you mean default arguments, then a third and easier option is to test using P99 macros (http://p99.gforge.inria.fr/), and making TCC preprocessor conforming (if needed)P99 provides default arguments via its macrosLioric-- Sent from my HP TouchPadOn Feb 20, 2012 8:37 AM, scx

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

2012-02-20 Thread Jared Maddox
> Date: Mon, 20 Feb 2012 07:31:04 -0800 (PST) > From: scx31...@yahoo.com > To: Tinycc-devel@nongnu.org > Subject: Re: [Tinycc-devel] tcc optional argument as in C++ > Message-ID: > <1329751864.73120.yahoomailclas...@web45307.mail.sp1.yahoo.com> > Content-Type: tex

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

2012-02-20 Thread scx31114
I have asked because there was one request on the mailing list to implement it and i need this functionality too, just this. In reality i don´t need it, but there are so many examples out of openCV that uses just g++ instead of gcc because of the default arguments reason, that i´m sure at least ev

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

2012-02-20 Thread Christian Jullien
David Mertens Sent: lundi 20 février 2012 15:13 To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] tcc optional argument as in C++ 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

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

2012-02-20 Thread David Mertens
age- > From: tinycc-devel-bounces+eligis=orange...@nongnu.org > [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of > scx31...@yahoo.com > Sent: lundi 20 février 2012 14:37 > To: Tinycc-devel@nongnu.org > Subject: [Tinycc-devel] tcc optional argument as in C+

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

2012-02-20 Thread Christian Jullien
devel-bounces+eligis=orange...@nongnu.org [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of scx31...@yahoo.com Sent: lundi 20 février 2012 14:37 To: Tinycc-devel@nongnu.org Subject: [Tinycc-devel] tcc optional argument as in C++ Hi, i want/need to have optional argument dec

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

2012-02-20 Thread scx31114
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 wit