Skip to content

Commit 74b6ebe

Browse files
committed
change syntax for ifx fix
1 parent eb77455 commit 74b6ebe

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/stdlib_system.F90

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module stdlib_system
7777
!! - `process_open_cmd`: Opens a process using a command string.
7878
!! - `process_open_args`: Opens a process using an array of arguments.
7979
!!
80-
module type(process_type) function process_open_cmd(cmd, wait, stdin, want_stdout, want_stderr) result(process)
80+
module function process_open_cmd(cmd, wait, stdin, want_stdout, want_stderr) result(process)
8181
!> The command line string to execute.
8282
character(*), intent(in) :: cmd
8383
!> Optional input sent to the process via standard input (stdin).
@@ -88,9 +88,11 @@ module type(process_type) function process_open_cmd(cmd, wait, stdin, want_stdou
8888
logical, optional, intent(in) :: want_stdout
8989
!> Whether to collect standard error output.
9090
logical, optional, intent(in) :: want_stderr
91+
!> The output process handler.
92+
type(process_type) :: process
9193
end function process_open_cmd
9294

93-
module type(process_type) function process_open_args(args, wait, stdin, want_stdout, want_stderr) result(process)
95+
module function process_open_args(args, wait, stdin, want_stdout, want_stderr) result(process)
9496
!> List of arguments for the process to execute.
9597
character(*), intent(in) :: args(:)
9698
!> Optional input sent to the process via standard input (stdin).
@@ -101,6 +103,8 @@ module type(process_type) function process_open_args(args, wait, stdin, want_std
101103
logical, optional, intent(in) :: want_stdout
102104
!> Whether to collect standard error output.
103105
logical, optional, intent(in) :: want_stderr
106+
!> The output process handler.
107+
type(process_type) :: process
104108
end function process_open_args
105109
end interface run
106110

src/stdlib_system_subprocess.F90

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ module subroutine sleep(millisec)
8282
end subroutine sleep
8383

8484
!> Open a new process
85-
module type(process_type) function process_open_cmd(cmd,wait,stdin,want_stdout,want_stderr) result(process)
85+
module function process_open_cmd(cmd,wait,stdin,want_stdout,want_stderr) result(process)
8686
!> The command and arguments
8787
character(*), intent(in) :: cmd
8888
!> Optional character input to be sent to the process via pipe
@@ -91,13 +91,15 @@ module type(process_type) function process_open_cmd(cmd,wait,stdin,want_stdout,w
9191
logical, optional, intent(in) :: wait
9292
!> Require collecting output
9393
logical, optional, intent(in) :: want_stdout, want_stderr
94+
!> The output process handler
95+
type(process_type) :: process
9496

9597
process = process_open_args([cmd],wait,stdin,want_stdout,want_stderr)
9698

9799
end function process_open_cmd
98100

99101
!> Open a new process
100-
module type(process_type) function process_open_args(args,wait,stdin,want_stdout,want_stderr) result(process)
102+
module function process_open_args(args,wait,stdin,want_stdout,want_stderr) result(process)
101103
!> The command and arguments
102104
character(*), intent(in) :: args(:)
103105
!> Optional character input to be sent to the process via pipe
@@ -106,6 +108,8 @@ module type(process_type) function process_open_args(args,wait,stdin,want_stdout
106108
logical, optional, intent(in) :: wait
107109
!> Require collecting output
108110
logical, optional, intent(in) :: want_stdout, want_stderr
111+
!> The output process handler
112+
type(process_type) :: process
109113

110114
real(RTICKS) :: count_rate
111115
logical :: asynchronous, collect_stdout, collect_stderr, has_stdin

0 commit comments

Comments
 (0)