tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Local procedures


From: Bernhard Fischer
Subject: Re: [Tinycc-devel] Local procedures
Date: Thu, 13 Sep 2007 11:49:04 +0200
User-agent: Mutt/1.5.16 (2007-06-11)

On Tue, Sep 11, 2007 at 01:53:11PM -0500, Rob Landley wrote:
>On Tuesday 11 September 2007 6:24:53 am address@hidden wrote:
>> What are the chances of tcc having support for local procedures sometime in
>> the near future?
>
>Ok, back to the original question, I think you're asking for this:
>http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
>
>Which seems somewhere between an inline function and a macro.
>
>And although I'm not averse to merging a patch for this, I'm not too 
>interested in doing the work myself at the moment because I'm focused on 
>getting tcc to compile existing programs (like busybox, uClibc, and the Linux 
>kernel).  I don't know of any existing programs that make use of this.  I'm 
>guessing you have an example? :)

busybox trunk, find's parse_params() has a nested function
alloc_action().
I don't like nested functions ;)




reply via email to

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