-
Notifications
You must be signed in to change notification settings - Fork 0
/
f_closedir.f90
62 lines (62 loc) · 1.21 KB
/
f_closedir.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
!-----------------------------------------------------------------------
!
! Level 1:
!
!-----
!
subroutine f_closedir ( dir )
!
use mod_funx_param, only: ck_dir
implicit none
!
! include 'i_param.inc'
!
type(ck_dir),intent(inout) :: dir
!
external c_closedir
!
!
call c_closedir ( dir % ptr )
!
end subroutine f_closedir
!
!-----------------------------------------------------------------------
!
! Level 2:
!
!-----
!
!
!-----------------------------------------------------------------------
!
! New version:
! Pass arguments using its reference with value in integer(8), i.e.
! intptr_t defined in /usr/include/stdint.h
!
!-----------------------------------------------------------------------
!
! Level 1:
!
!-----
!
subroutine f_closedir_intref ( iptr )
!
use mod_funx_param, only: ck_intptr_t
implicit none
!
! include 'i_param.inc'
!
integer(kind=ck_intptr_t),intent(in) :: iptr
!
external c_closedir_intref
!
!
call c_closedir_intref ( iptr )
!
end subroutine f_closedir_intref
!
!-----------------------------------------------------------------------
!
! Level 2:
!
!-----