Re: [PULL] typesafe callbacks for kthread and stop_machine

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Thursday, July 31, 2008 - 7:06 am

On Thu, Jul 31, 2008 at 02:52:35PM +1000, Rusty Russell wrote:

I must say I personally don't like the wrapper macros that you require
for each function that uses this. A wrapper macro has a large impact
on code readability because everyone following a call chain has
to do an additional grep/open file etc. step. I have my doubts not having casts 
outweights that disadvantage.

I know that gcc has this funky transparent union extension that
glibc socket() uses to allow different address types without casts.
It has the advantage of not needing wrapper macros. Any chance of 
using that instead? Or has that one been considered already and
discarded? 

-Andi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PULL] typesafe callbacks for kthread and stop_machine, Rusty Russell, (Wed Jul 30, 9:52 pm)
Re: [PULL] typesafe callbacks for kthread and stop_machine, Andi Kleen, (Thu Jul 31, 7:06 am)