svn commit: r356755 - in head/sys: net netinet netinet6 netpfil/ipfw/nat64 sys
Hans Petter Selasky
hps at selasky.org
Wed Jan 15 08:51:10 UTC 2020
On 2020-01-15 07:10, Gleb Smirnoff wrote:
> I really want to reverse the argument order of epoch_call() as well.
> The current order is really backwards:
>
> void
> epoch_call(epoch_t epoch, epoch_context_t ctx,
> void (*callback)(epoch_context_t));
>
> Suggested declaration is:
>
> void
> epoch_call(epoch_t epoch, epoch_context_t ctx,
> void (*callback)(epoch_context_t));
Hi,
I think he meant to put the ctx argument last. Look at how the function
is implemented to see if that makes any sense, I.E. how arguments are
optimised.
> epoch_call(epoch_t epoch, epoch_context_t ctx,
> void (*callback)(epoch_context_t));
Is this *want* just because of "function, argument" is better than
"argument, function" ?
--HPS
More information about the svn-src-all
mailing list