combine_gens
gen-routine (function table) operation
Given two function tables occupying the function table
slot locations srcslot1 and
srcslot2, allocate a new table, to occupy destslot, filled with a
combination of corresponding elements from the source tables. The
type of combination is specified by modtype, currently addition
or multiplication. The new table has the same size as the larger
of the two source tables, and this size is returned.
typedef enum {
ADD_GENS,
MULT_GENS
} GenModType;
int combine_gens(int destslot, int srcslot1, int srcslot2, int normalize,
GenModType modtype, char *funcname)
See
makegen
for info about function table creation.