- create all weights for the links created by create_ff_links(LOCAL)
SYNOPSIS
int create_ff_weights
(net)
ARGUMENTS
NET
*net
A pointer to a NET structure, already containing
a doubly linked list of unit structures connected
by link structures.
RETURNS
TRUE if an error was detected, FALSE if not.
FUNCTION
This function attaches a WEIGHT structure to all LINK structures
found by
traversing the linked list InLinks for each UNIT in the network and
using get_outlink to find the corresponding OUTLINK in the second
unit.
The created WEIGHTs are put into a linked list and connected to the NET
structure's FirstWeight field.
The function malloc_weight is used to allocate the memory. The
weights' WeightFlag field is set to VARWEIGHT (see WEIGHT-flags) and
the WeightId field is correctly filled.