I tried to send out my previous attached patch last Friday, but it did not work.

So, now I have sent out three patches in other emails:
  [PATCH] Replace src inline nested functions with macros.
  [PATCH] Replace libelf nested functions with macros.
  [PATCH] Replace libdw nested functions with macros, part 1
More will come for other files.

We can discuss case by case. Some nested function could be converted to simple macros,
some might be moved to file scope, and some you might find more similar to closures.


On Mon, Sep 14, 2015 at 10:13 AM, Roland McGrath <roland@hack.frob.com> wrote:
If they get inlined by the compiler, then there is no performance difference.