File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ end function c_is_dir
52
52
#endif
53
53
54
54
integer , parameter :: max_line = 100000 ! ! maximum number of lines in a text file
55
+ integer :: idx(max_line) = 1 ! ! indexes for read_lines
55
56
56
57
contains
57
58
@@ -312,7 +313,6 @@ function read_lines_expanded(fh) result(lines)
312
313
integer :: i
313
314
integer :: length, count
314
315
character (len= :), allocatable :: content
315
- integer , save :: idx(max_line) = 1
316
316
317
317
inquire (fh, size= length)
318
318
allocate (character (len= length) :: content)
@@ -343,7 +343,6 @@ function read_lines(fh) result(lines)
343
343
integer :: i
344
344
integer :: length, count
345
345
character (len= :), allocatable :: content
346
- integer , save :: idx(max_line) = 1
347
346
348
347
inquire (fh, size= length)
349
348
allocate (character (len= length) :: content)
You can’t perform that action at this time.
0 commit comments