135 CHARACTER *(*) message
138 WRITE(6,*)
'Program aborted'
147 CHARACTER *(*) message
149 IF(.NOT.
ASSOCIATED(list%Head%Next))
THEN
151 CALL
abort(
'List is not initialised in call to LI_Check_List()')
160 TYPE(list_type),
INTENT(INOUT),
TARGET :: list
162 nullify(list%Head%Next)
173 link%P%Next => list%Head%Next
174 list%Head%Next => link%P
182 TYPE(list_type),
INTENT(IN),
TARGET :: list
188 DO WHILE(
ASSOCIATED(link%P%Next))
189 link%P => link%P%Next
215 IF(.NOT.
ASSOCIATED(link%P%Next))
THEN
228 TYPE(list_type),
INTENT(IN),
TARGET :: list
239 TYPE(list_type),
INTENT(INOUT),
TARGET :: list
242 link%P => list%Head%Next
243 IF(
ASSOCIATED(link%P))
THEN
244 list%Head%Next => link%P%Next
static void abort(int ierr)
subroutine, public li_add_to_head(Link, List)
type(link_ptr_type) function, public li_get_head(List)
subroutine, public li_check_list(List, Message)
logical function, public li_associated(Link)
subroutine, public li_init_list(List)
type(link_ptr_type) function, public li_get_next(Link)
type(link_ptr_type) function, public li_remove_head(List)
INTEGER function, public li_get_len(List)