Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,33 @@
module fifo_nodes
type fifo_node
integer :: datum
! the next part is not variable and must be present
type(fifo_node), pointer :: next
logical :: valid
end type fifo_node
end module fifo_nodes
program FIFOTest
use fifo
implicit none
type(fifo_head) :: thehead
type(fifo_node), dimension(5) :: ex, xe
integer :: i
call new_fifo(thehead)
do i = 1, 5
ex(i)%datum = i
call fifo_enqueue(thehead, ex(i))
end do
i = 1
do
call fifo_dequeue(thehead, xe(i))
print *, xe(i)%datum
i = i + 1
if ( fifo_isempty(thehead) ) exit
end do
end program FIFOTest