:
init_list, insert_list, delete_list, empty_list, in_list -- List Hanling
SYNTAX
:
init_list( LIST l )
insert_list( int e, LIST l )
delete_list( int e, LIST l )
int empty_list( LIST l )
int in_list( int e, LIST l )
DESCRIPTION
:
init_list initialises list l to an empty list.
insert_list inserts integer element e into list l. If e is already in list, l is left unchanged.
delete_list deletes integer element e from list l.
empty_list returns TRUE if list l is empty. Otherwise returns FALSE.
in_list returns TRUE if integer element e is a member of list l. Otherwise returns FALSE.
DIAGNOSTICS
If
an error message is printed and the execution is aborted. In delete_list if e is not a member of l a warning message is printed both to debug file and on the display.
RESTRICTIONS
These routines can create and handle a list of up to MAXMEMBERS integers. The minimum space of a bit is used per each member.