Hi James, On Tue, Jul 05, 2005 at 11:40:40AM -0400, James Morris wrote: > On Tue, 5 Jul 2005, Kurt Garloff wrote: > > > # define COND_SECURITY(seop, def) \ > > (security_opt->seop == NULL) || \ > > security_ops == &capability_security_ops)? \ > > def: security_ops->seop > > Why is this a macro and not a static inline? Good question ... The number and type of parameters is variable, so we can't easily do it with ONE static inline function. seop is the function call including parameters, as is def. Which means that the idea won't work the way I suggested in the email. We'd need a three arg version, one for the security_ops function name, one for the cap version and one for the arguments. Best, -- Kurt Garloff, Director SUSE Labs, Novell Inc.
This archive was generated by hypermail 2.1.3 : Tue Jul 05 2005 - 09:27:48 PDT