[sr-dev] more fixups in mod_fix.h or what?

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 7 19:01:27 CEST 2010


Hello,

On 4/7/10 7:38 AM, Juha Heinanen wrote:
> what is the best practice of fixing up module functions with more than
> two params?
>
> in mod_fix.h there is some three param fixups defined, but not all
> possible param type combinations.  also, adding four param fixups will
> not scale, since the number or possible type combinations would be too
> large.
>    

mod_fix.h should be used if there are more than one module using that 
fixup, otherwise makes no sense, the fixup should stay in the module.

Using type of parameter in name of function does not scale anymore, so a 
different name pattern should be chosen. Can be developer choice, 
preferably suggestive if possible.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla * http://www.asipto.com/ * 
http://twitter.com/miconda * 
http://www.linkedin.com/in/danielconstantinmierla



More information about the sr-dev mailing list