|
Subject: [PATCH 0/6] RFC: Typesafe callbacks Newsgroups: gmane.linux.kernel Date: 2008-01-20 09:46:13 GMT (1 year, 23 weeks, 6 days, 2 hours and 56 minutes ago) Hi all, Converting to and from void * for callback functions loses type safety: everywhere else we expect the compiler to catch incorrect pointer types handed to functions. It's pretty simple to create typesafe callback functions using typeof, and with a little gcc trickery we can allow both old-style and typesafe callbacks to avoid churn on commonly-used routines. Feedback welcomed, Rusty. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo <at> vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |
|
|