| Thanks for the quick reply.
Does the actual gen number depend on the order
of the loading? If fgen1.so is loaded before fgen2.so, then say
it will have a lower number?
Victor
At 16:53 20/12/2004, you wrote:
> >>>>> "Victor" == Victor Lazzarini writes:
>
> Victor> Is there any reason why the localfgens array is terminated
> Victor> with NULL as in
>
>Yes there is
>
> Victor> static NGFENS localfgens[] = {
> Victor> { "tanh", (void(*)(void))tanhtable},
> Victor> { NULL, NULL}
> Victor> };
>
> Victor> (from ftest.c)
>
> Victor> Should it always be implemented like that?
>
> Victor> Victor
>
>
>....but I expect you really want to know why! There are two options
>-- a null terminated list or a count. If one used a count then there
>needs to be a way to pass that count back to the loading code, and I
>decided that that opens up too many complication, while a NULL
>terminated structure is simple and clean.
>
>==John ff
Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth |