Date:Fri, 5 Jul 2024 08:00:46 +0200
From:Roland Illig
Message-ID:
| Do you really need all these functions in a single table?
Yes. This is for when a variable is set, the var struct has a
function for those few variables that need some special action to
be taken
Am 05.07.2024 um 06:36 schrieb Robert Elz:
> In sh, I have a whole set of functions that are called
> via a function pointer in a data struct
>
> (*p->func)(arg);
>
> One of those functions needs a 2nd arg, which means that
> to keep compatible function profiles these days, I need
> to add th
On Fri, Jul 05, 2024 at 11:36:06 +0700, Robert Elz wrote:
> So, now I have all these functions (but one) with an arg they don't
> need, and have no use for.
>
> I could add something stupid like
> arg = arg;
> or something to use the value (but then the compiler is likely to
> warn about ar
In sh, I have a whole set of functions that are called
via a function pointer in a data struct
(*p->func)(arg);
One of those functions needs a 2nd arg, which means that
to keep compatible function profiles these days, I need
to add the extra arg to all of them
In the ancient past I would