On Thu, Jan 01, 2004 at 03:27:59PM +0100, Michel D?nzer wrote: > Does this look better? Maybe a macro (or a typedef?) for the type of the > last argument would still be a good idea? Or is there yet a better way?
I'm going to regret suggesting this, but how about: (a) a typedef for the arg itself (b) a macro and/or inline for the type update both simultaneously? So we'd have centralized in one place: #if /* kernel version > 2.6.0 */ typdef int *third_arg_t; #define third_arg_update(type) do { *(type) = VM_FAULT_MINOR; } while (0) #else typdef int third_arg_t; #define third_arg_update(type) do { } while (0) #endif ... and the natural usage that follows. -- wli ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel